/* Anki Core Decks Homepage - Minimalist Design */

/* Color Variables */
:root {
    --primary-color: #1191D9;
    --secondary-color: #F8C72B;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-light: #e9ecef;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Hero Section */
.acd-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d7ab8 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.acd-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.acd-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.acd-hero-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 60px 20px;
    margin: 2rem 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Buttons */
.acd-btn-primary {
    background-color: var(--secondary-color);
    border: none;
    color: var(--text-dark);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.acd-btn-primary:hover {
    background-color: #e6b424;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(248, 199, 43, 0.3);
    text-decoration: none;
    color: var(--text-dark);
}

.acd-btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.acd-btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.acd-btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.acd-btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.acd-btn-disabled {
    background-color: var(--border-light);
    border: none;
    color: var(--text-light);
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: not-allowed;
    display: inline-block;
    margin-top: 1rem;
}

/* Two Decks Section */
.acd-two-decks {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.acd-two-decks h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.acd-two-decks .lead {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.acd-deck-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.acd-deck-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.acd-deck-placeholder {
    background: linear-gradient(135deg, var(--primary-color), #0d7ab8);
    border-radius: 12px;
    width: 120px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--white);
    font-weight: 500;
}

.acd-deck-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.acd-deck-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.acd-deck-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Features Section */
.acd-features {
    padding: 80px 0;
    background-color: var(--white);
}

.acd-feature-card {
    text-align: center;
    padding: 2rem 1rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.acd-feature-card:hover {
    transform: translateY(-5px);
}

.acd-feature-placeholder {
    background-color: var(--bg-light);
    border: 2px dashed var(--border-light);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.acd-feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.acd-feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* About Section */
.acd-about {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.acd-about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.acd-about p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Languages Section */
.acd-languages {
    padding: 80px 0;
    background-color: var(--white);
}

.acd-languages h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.acd-language-demo {
    text-align: center;
    height: 100%;
}

.acd-video-placeholder {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 12px;
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.acd-video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.acd-video-placeholder.acd-disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
}

.acd-video-placeholder.acd-disabled:hover {
    transform: none;
    box-shadow: none;
}

.acd-play-button {
    width: 60px;
    height: 60px;
    background: rgba(248, 199, 43, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.acd-video-placeholder:hover .acd-play-button {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.acd-video-label {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
}

.acd-language-demo h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.acd-language-demo p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.acd-coming-soon .acd-video-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Deck Thumbnail Styles */
.acd-deck-thumbnail-link {
    display: block;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.acd-deck-thumbnail-link:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.acd-deck-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.acd-thumbnail-placeholder {
    background: linear-gradient(135deg, var(--primary-color), #0d7ab8);
    border-radius: 12px;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.acd-thumbnail-placeholder.acd-disabled {
    background: linear-gradient(135deg, #bdc3c7, #95a5a6);
    cursor: not-allowed;
}

.acd-thumbnail-label {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.acd-thumbnail-placeholder.acd-disabled .acd-thumbnail-label {
    color: rgba(255, 255, 255, 0.7);
}

/* Testimonials Section */
.acd-testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

.acd-testimonial-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: left;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.acd-testimonial-content {
    flex-grow: 1;
}

.acd-testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-style: italic;
}

.acd-testimonial-content p:last-child {
    margin-bottom: 1.5rem;
}

.acd-testimonial-author {
    font-size: 1rem;
    color: var(--primary-color);
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    margin-top: auto;
    text-align: center;
}

.acd-testimonial-author strong {
    font-weight: 600;
}

/* Deck Page Styles */
.acd-deck-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d7ab8 100%);
    color: var(--white);
}

.acd-deck-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.acd-deck-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.acd-deck-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.acd-stat {
    text-align: center;
}

.acd-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.acd-stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.acd-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.acd-video-container-small {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.acd-youtube-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.acd-youtube-video-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.acd-video-placeholder-large {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 80px 20px;
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.acd-play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(248, 199, 43, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0 auto 1rem;
}

.acd-deck-description {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.acd-description-text {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.acd-deck-examples {
    padding: 80px 0;
    background-color: var(--white);
}

.acd-example-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.acd-example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.acd-example-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.acd-example-info {
    padding: 1.5rem;
}

.acd-example-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.acd-example-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Image Container and Overlay */
.acd-example-image-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.acd-example-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.acd-example-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.acd-example-image-container:hover .acd-example-overlay {
    opacity: 1;
}

/* Modal Styles */
.acd-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.acd-modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.acd-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.acd-modal-close:hover,
.acd-modal-close:focus {
    color: var(--secondary-color);
}

.acd-modal-header {
    text-align: center;
    color: var(--white);
    margin-bottom: 2rem;
}

.acd-modal-header h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.acd-modal-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin: 0;
}

.acd-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.acd-modal-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.acd-deck-audio {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.acd-audio-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.acd-audio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.acd-audio-info {
    flex: 1;
}

.acd-audio-info h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.acd-audio-text {
    margin-bottom: 1rem;
}

.acd-target-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.acd-translation-text {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
}

.acd-audio-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.acd-audio-controls {
    display: flex;
    align-items: center;
    min-width: 250px;
}

.acd-audio-player {
    width: 100%;
    height: 40px;
}

.acd-audio-error {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
}

.acd-related-decks {
    padding: 80px 0;
    background-color: var(--white);
}

.acd-related-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.acd-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.acd-related-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.acd-related-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* CTA Section */
.acd-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0d7ab8 100%);
    color: var(--white);
    text-align: center;
}

.acd-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.acd-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .acd-hero-title {
        font-size: 2.5rem;
    }

    .acd-hero-subtitle {
        font-size: 1.2rem;
    }

    .acd-two-decks {
        padding: 60px 0;
    }

    .acd-two-decks h2 {
        font-size: 2rem;
    }

    .acd-two-decks .lead {
        font-size: 1.1rem;
    }

    .acd-deck-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }

    .acd-features {
        padding: 60px 0;
    }

    .acd-about {
        padding: 60px 0;
    }

    .acd-languages {
        padding: 60px 0;
    }

    .acd-testimonials {
        padding: 60px 0;
    }

    .acd-testimonial-card {
        padding: 2rem 1.5rem;
    }

    .acd-testimonial-content p {
        font-size: 1rem;
    }

    .acd-cta {
        padding: 60px 0;
    }

    .acd-about h2,
    .acd-languages h2,
    .acd-cta h2 {
        font-size: 2rem;
    }

    .acd-video-placeholder {
        height: 160px;
    }

    .acd-play-button {
        width: 50px;
        height: 50px;
        font-size: 0.8rem;
    }

    .acd-deck-title {
        font-size: 2.2rem;
    }

    .acd-deck-subtitle {
        font-size: 1.1rem;
    }

    .acd-deck-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .acd-deck-examples {
        padding: 60px 0;
    }

    .acd-deck-audio {
        padding: 60px 0;
    }

    .acd-audio-content {
        flex-direction: column;
        gap: 1rem;
    }

    .acd-audio-controls {
        align-self: stretch;
        min-width: auto;
    }

    .acd-audio-player {
        width: 100%;
    }

    .acd-related-decks {
        padding: 60px 0;
    }

    /* Modal responsive */
    .acd-modal-content {
        width: 95%;
        padding: 0 1rem;
    }

    .acd-modal-close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
    }

    .acd-modal-header h3 {
        font-size: 1.5rem;
    }

    .acd-modal-header p {
        font-size: 1rem;
    }

    .acd-modal-body img {
        max-height: 70vh;
    }
}

@media (max-width: 576px) {
    .acd-hero-title {
        font-size: 2rem;
    }

    .acd-hero-subtitle {
        font-size: 1rem;
    }

    .acd-btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .acd-deck-card h3 {
        font-size: 1.5rem;
    }

    .acd-video-placeholder {
        height: 140px;
    }

    .acd-play-button {
        width: 45px;
        height: 45px;
    }
}