/* Home Page Specific Styles */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--aus-green);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Section Titles with Decoration */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--aus-green);
    margin-bottom: 16px;
    text-align: center;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--aus-gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 18px;
}

/* Language Selection Card */
.language-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.language-card:hover {
    border-color: var(--aus-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Language Settings Grid */
.language-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 30px;
}

.language-selection-column {
    display: flex;
    flex-direction: column;
}

.language-select-wrapper {
    margin-top: 20px;
}

#languageSelect {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-white);
    cursor: pointer;
}

.translation-options-column {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
}

.translation-options-column h3 {
    font-size: 24px;
    color: var(--aus-green);
    margin-bottom: 12px;
}

.options-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Translation Options */
.translation-option {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.translation-option:hover {
    background: #f0f8f4;
    transform: translateX(4px);
}

.translation-checkbox {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    accent-color: var(--aus-green);
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.translation-content {
    flex: 1;
    min-width: 0;
}

.translation-content h4 {
    color: var(--aus-green);
    margin: 0 0 8px 0;
    font-size: 18px;
    word-wrap: break-word;
}

.translation-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    word-wrap: break-word;
}

/* Practice Section */
.practice-section {
    padding: 60px 0;
    background: var(--bg-light);
}

/* Quiz Cards Container */
.quiz-cards {
    display: grid;
    gap: 24px;
    margin-bottom: 60px;
}

/* Practice Card - Most Prominent */
.practice-card {
    background: linear-gradient(135deg, var(--aus-green) 0%, var(--aus-green-dark) 100%);
    color: white;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 205, 0, 0.1) 0%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

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

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 132, 61, 0.3);
}

.practice-card h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: white;
    position: relative;
}

.practice-card .badge {
    display: inline-block;
    background: var(--aus-gold);
    color: var(--aus-green);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.practice-card p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
    color: white;
}

.practice-button {
    background: var(--aus-gold);
    color: var(--aus-green);
    border: none;
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.practice-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 205, 0, 0.4);
}

/* Secondary Cards Container */
.secondary-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Regular Quiz Cards */
.quiz-card {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.quiz-card:hover {
    border-color: var(--aus-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quiz-card h3 {
    color: var(--aus-green);
    font-size: 24px;
    margin-bottom: 12px;
}

.quiz-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.secondary-button {
    background: transparent;
    color: var(--aus-green);
    border: 2px solid var(--aus-green);
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.secondary-button:hover {
    background: var(--aus-green);
    color: white;
    transform: translateY(-1px);
}

/* Expandable Category Card */
.quiz-card.expandable {
    overflow: hidden;
    transition: all 0.3s ease;
}

.expand-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.expand-icon {
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.quiz-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
    opacity: 0;
}

.quiz-card.expanded .category-content {
    max-height: 500px;
    margin-top: 20px;
    opacity: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 20px 0;
}

.category-option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.category-option:hover {
    background: #e2e8f0;
}

.category-option input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--aus-green);
}

.category-option span {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    padding: 60px 0;
    background: var(--bg-white);
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0 auto 32px;
    max-width: 100%;
}

.blog-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--aus-green) 0%, var(--aus-green-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.blog-content {
    padding: 24px;
}

.blog-date {
    color: var(--aus-gold);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.blog-title {
    color: var(--aus-green);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-excerpt {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.blog-full-content {
    display: none;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.blog-card.expanded .blog-full-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.blog-link {
    color: var(--aus-green);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
}

.blog-link:hover {
    gap: 12px;
    text-decoration: underline;
}

.view-more-blogs {
    text-align: center;
}

.view-more-button {
    background: var(--aus-gold);
    color: var(--aus-green);
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255, 205, 0, 0.3);
}

/* Resources Section */
.resources-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Mobile View - Force single column */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .resource-card {
        width: 100%;
        margin: 0;
    }
}

/* Tablet View - 2 columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.resource-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--aus-gold);
    position: relative;
    overflow: hidden;
}

.resource-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.resource-card.expandable {
    cursor: pointer;
}

.resource-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--aus-gold) 0%, #ffd833 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.resource-title {
    color: var(--aus-green);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.resource-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.resource-link, .learn-more-btn {
    color: var(--aus-green);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.resource-link:hover, .learn-more-btn:hover {
    text-decoration: underline;
    gap: 12px;
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.resource-card.expanded .expandable-content {
    max-height: 800px;
}

.tips-list {
    list-style: none;
    padding: 0;
}

.tips-list li {
    margin-bottom: 16px;
    padding-left: 24px;
    position: relative;
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--aus-green);
    font-weight: bold;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 0;
}

.faq-question {
    font-weight: 600;
    color: var(--aus-green);
    margin-bottom: 8px;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.6;
}

.english-tips h4 {
    color: var(--aus-green);
    margin: 20px 0 12px 0;
}

/* Social Media Section */
.social-section {
    background: var(--bg-white);
    padding: 60px 0;
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.social-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--aus-gold);
}

.social-card-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--aus-green) 0%, var(--aus-green-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.social-platform {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-platform-icon {
    font-size: 28px;
}

.social-platform-name {
    font-size: 20px;
    font-weight: 600;
}

.follow-button {
    background: var(--aus-gold);
    color: var(--aus-green);
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 205, 0, 0.4);
}

.social-embed {
    padding: 24px;
    background: var(--bg-light);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.embed-placeholder {
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .language-settings-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .blog-cards {
        grid-template-columns: 1fr;
    }
    
    .social-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .practice-card {
        padding: 32px;
    }
    
    .secondary-cards {
        grid-template-columns: 1fr;
    }
    
    .quiz-card.expanded {
        grid-column: 1 / -1;
    }
    
    /* Fix translation options on mobile */
    .translation-option {
        transform: none;
    }
    
    .translation-option:hover {
        transform: none;
    }
    
    .translation-checkbox {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
}