/* LinkedIn Post Finder Tool Styles */

/* Search input focus animation */
.search-input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Post card hover effect */
.post-card {
    transition: all 0.2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* CTA button gradient animation */
.cta-generate {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
}

.cta-generate:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Free badge pulse */
.free-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Loading spinner */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Skeleton loading animation */
.skeleton-loading {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.modal-content {
    position: relative;
    background-color: white;
    border-radius: 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-close-btn,
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.modal-close-btn:hover,
.modal-close:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Tooltip styles */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 280px;
    background-color: #1e293b;
    color: #f1f5f9;
    text-align: left;
    border-radius: 8px;
    padding: 12px 14px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    line-height: 1.5;
    font-weight: normal;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Limit modal styles */
#limit-modal {
    display: none;
}

#limit-modal.visible {
    display: flex;
}

/* Error toast */
#error-toast {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* FAQ accordion styles */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
}

.faq-icon {
    transition: transform 0.2s ease;
}

/* Search mode buttons */
.search-mode-btn {
    color: #64748b;
    background: transparent;
    border: 2px solid transparent;
}

.search-mode-btn:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.5);
}

.search-mode-btn.active {
    color: #1e40af;
    background: white;
    border-color: #3b82f6;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

/* Advanced search animation */
.animate-fade-in {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced search toggle rotation */
#advanced-search-chevron.rotated {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .modal-content {
        margin: 1rem;
        border-radius: 1.25rem;
    }
    
    .tooltip-text {
        width: 220px;
        font-size: 12px;
    }
}

