/* Guides Page Specific Styles */

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 60px);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.1s ease;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 92, 62, 0.1);
}

.category-filter {
    min-width: 200px;
}

.category-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    cursor: pointer;
    transition: all 0.1s ease;
}

.category-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 92, 62, 0.1);
}

/* Guides Grid */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.guide-card {
    content: "COMING SOON";
    opacity: 0.6;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-footer {
    opacity: 0.3;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--accent-color);
}

.guide-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.guide-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.guide-meta {
    flex: 1;
}

.guide-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.guide-category {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 500;
}

.guide-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
}

.guide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.guide-featured {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guide-download {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.1s ease;
}

.guide-download svg {
    width: 16px;
    height: 16px;
    transition: transform 0.1s ease;
}

.guide-card:hover .guide-download svg {
    transform: translateY(2px);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Results State */
.no-results {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
}

.no-results-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.no-results p {
    font-size: 16px;
    line-height: 1.5;
}

/* Email Modal Specific Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-input {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.checkbox-label {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

/* Email Modal Buttons */
.btn-primary {
    width: 100%;
    background: var(--accent-color);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.btn-secondary {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 24px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-container, .category-filter {
        max-width: none;
        width: 100%;
    }

    .guides-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .guide-card {
        padding: 20px;
    }

    .guide-header {
        gap: 12px;
    }

    .guide-icon {
        width: 40px;
        height: 40px;
    }

    .guide-icon svg {
        width: 20px;
        height: 20px;
    }

    .guide-title {
        font-size: 18px;
    }

    .guide-description {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }

    .guide-card {
        padding: 16px;
    }

    .guide-title {
        font-size: 16px;
    }

    .guide-description {
        font-size: 14px;
    }
}

/* Animation for guide cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guide-card {
    animation: fadeInUp 0.4s ease;
}

.guide-card:nth-child(1) { animation-delay: 0.1s; }
.guide-card:nth-child(2) { animation-delay: 0.2s; }
.guide-card:nth-child(3) { animation-delay: 0.3s; }
.guide-card:nth-child(4) { animation-delay: 0.4s; }
.guide-card:nth-child(5) { animation-delay: 0.5s; }
.guide-card:nth-child(6) { animation-delay: 0.6s; }