/* Helpful Hints Page Styles */

:root {
    /* Colors */
    --color-primary: #0028BC;
    --color-primary-dark: #002094;
    --color-primary-light: #3352C9;
    --color-text: #1A1A1A;
    --color-text-secondary: #666666;
    --color-like: #4267B2;
    --color-like-active: #1d3c85;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Ensure body has the right font */
body {
    font-family: var(--font-family);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
}

/* Main layout - matching other pages */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    margin-top: 1rem;
    min-height: calc(100vh - 200px);
}

/* Section header spacing - standardized */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
    padding-bottom: 0;
}

.page-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    display: block !important;
    padding: 0 !important;
}

.section-header h1,
.page-title {
    font-size: 3rem;
    margin-bottom: 0;
    color: var(--color-primary, #0028BC);
    font-weight: 600;
}

.section-description,
.intro-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: var(--color-text-secondary, #666666);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Landing Experience Styles */
.landing-experience {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landing-experience.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

.question-container {
    text-align: center;
    margin: 2rem auto 3rem;
    max-width: 900px;
}

.landing-question {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.landing-question:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--color-primary-light);
    border-radius: 3px;
}

.category-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.category-option {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #eaeaea;
}

.category-option:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    background-color: #f8faff;
    border-color: #d8e1ff;
}

.option-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,40,188,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-option:hover .option-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,40,188,0.3);
}

.option-icon i {
    font-size: 1.8rem;
}

.category-option h3 {
    margin: 0 0 1rem 0;
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.category-option p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Hints Content Styles */
.hints-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hints-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

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

.hidden {
    display: none !important;
}

/* Category Question Section */
.category-question-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.category-question {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    justify-content: center;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--color-primary-light);
    background: #f8faff;
}

.category-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,40,188,0.2);
}

.category-btn i {
    font-size: 1.1rem;
    margin: 0;
}

.category-btn.active i {
    color: white;
}

/* Search and Filter Section */
.search-filter-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 3rem;
    border: 1px solid #eaeaea;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.search-filter-section.hidden {
    display: none;
}

.search-filter-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-box input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #ddd;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-family);
}

.search-box input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 40, 188, 0.1);
}

/* Hide any "No results" messages that might appear */
[data-no-results],
.no-results,
.no-results-message {
    display: none !important;
}

.search-box button {
    padding: 0.875rem 1.5rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    background: var(--color-primary-dark);
}

.search-box button i {
    font-size: 1.1rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
    white-space: nowrap;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: white;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font-family);
    cursor: pointer;
    min-width: 180px;
}

.filter-select:focus {
    border-color: var(--color-primary);
}

.clear-button {
    padding: 0.75rem 1.25rem;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-weight: 500;
    margin-left: auto;
}

.clear-button:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}


.category-heading {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eaeaea;
    font-weight: 600;
    position: relative;
}


/* Hints Grid */
.hints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.hint-card {
    background: white;
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hint-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hint-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #d8e1ff;
}

.hint-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hint-title {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.hint-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.hint-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    padding-top: 1rem;
    border-top: 1px solid #eaeaea;
    justify-content: flex-end;
}

.like-button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.like-button:hover {
    background: #f5f8ff;
    border-color: var(--color-like);
    color: var(--color-like);
}

.like-button.active {
    background: var(--color-like);
    color: white;
    border-color: var(--color-like);
}

.like-button i {
    font-size: 1rem;
}

.like-count {
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
}

.try-now-button {
    padding: 8px 16px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
}

.try-now-button:hover {
    background: #3367d6;
}

.try-now-button i {
    font-size: 12px;
}

.try-now-button:active {
    transform: scale(0.98);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-info {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
}

.pagination-btn i {
    font-size: 0.9rem;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.page-number:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.page-number.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.page-number.ellipsis {
    cursor: default;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
}

.page-number.ellipsis:hover {
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
}

/* Feedback Section */
.feedback-section {
    margin-top: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8faff 0%, #e8f2ff 100%);
    border-radius: 12px;
    border: 1px solid #e1e8f7;
}

.feedback-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feedback-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feedback-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feedback-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 40, 188, 0.2);
}

.feedback-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 40, 188, 0.3);
    color: white;
    text-decoration: none;
}

.feedback-button i {
    font-size: 1.1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: var(--spacing-xl);
    }
    
    .section-header h1,
    .page-title {
        font-size: 2.5rem;
    }
    
    .section-description,
    .intro-text {
        font-size: 1.1rem;
    }
    
    .page-container {
        padding: 2rem 1rem;
    }
    
    .hints-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hint-card {
        padding: 1.25rem;
    }
    
    .search-filter-section {
        padding: 1.5rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-options {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .clear-button {
        width: 100%;
        margin-left: 0;
    }
    
    .landing-question {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .landing-question:after {
        width: 80px;
        bottom: -10px;
    }
    
    .category-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .option-icon {
        width: 60px;
        height: 60px;
    }
    
    .option-icon i {
        font-size: 1.5rem;
    }
    
    .category-option h3 {
        font-size: 1.2rem;
    }
    
    .category-heading {
        font-size: 1.5rem;
    }
    
    .category-question {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .category-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .category-btn i {
        font-size: 1rem;
    }
    
    @media (max-width: 480px) {
        .category-buttons {
            grid-template-columns: 1fr;
            gap: 0.4rem;
        }
    }
    
    .pagination-container {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .pagination-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .page-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .pagination-numbers {
        gap: 0.4rem;
    }
    
    .feedback-section {
        margin-top: 2rem;
        padding: 2rem 0;
    }
    
    .feedback-content {
        padding: 0 1rem;
    }
    
    .feedback-title {
        font-size: 1.3rem;
    }
    
    .feedback-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .feedback-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 1.5rem 1rem;
    }
    
    .hint-title {
        font-size: 1.2rem;
    }
    
    .hint-description {
        font-size: 0.95rem;
    }
}