/* Responsive Design Styles */

/* Base Styles */
:root {
    --container-padding: 20px;
    --card-gap: 20px;
}

/* Container Responsiveness */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* General Responsive Typography */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    p {
        font-size: 1rem;
    }
}

/* Header Responsiveness */
@media screen and (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(26, 11, 61, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 80px;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-btn {
        width: 80%;
        margin: 20px auto;
        text-align: center;
    }
}

/* Grid Layouts Responsiveness */
.overview-grid,
.customs-grid,
.learning-features,
.cultural-features,
.regional-grid,
.modern-adaptations {
    display: grid;
    gap: var(--card-gap);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card Responsiveness */
.custom-card,
.learning-card,
.cultural-card,
.region-card,
.adaptation-card,
.help-card,
.faq-item,
.issue-card,
.contact-card {
    width: 100%;
    margin-bottom: var(--card-gap);
}

/* Language Cards Specific */
@media screen and (max-width: 768px) {
    .language-card {
        margin-bottom: 30px;
    }
    
    .language-examples ul {
        padding-left: 20px;
    }
}

/* FAQ Section Responsiveness */
@media screen and (max-width: 768px) {
    .faq-question h4 {
        font-size: 1.1rem;
        padding-right: 30px; /* Space for icon */
    }
    
    .faq-answer {
        padding: 15px;
    }
}

/* Contact Form Responsiveness */
@media screen and (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    input,
    select,
    textarea {
        width: 100%;
        padding: 10px;
    }
}

/* Button Responsiveness */
@media screen and (max-width: 768px) {
    .btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Table Responsiveness */
@media screen and (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Feature Tutorial Responsiveness */
@media screen and (max-width: 768px) {
    .feature-tutorial {
        padding: 15px;
    }
    
    .tutorial-steps {
        flex-direction: column;
    }
    
    .tutorial-step {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* Cultural Content Responsiveness */
@media screen and (max-width: 768px) {
    .cultural-content,
    .spiritual-content,
    .regional-content {
        flex-direction: column;
    }
    
    .cultural-examples,
    .spiritual-elements,
    .regional-variations {
        margin-top: 20px;
    }
}

/* Support Section Responsiveness */
@media screen and (max-width: 768px) {
    .support-issues {
        grid-template-columns: 1fr;
    }
    
    .issue-card {
        margin-bottom: 20px;
    }
    
    .support-tips .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Company Information Responsiveness */
@media screen and (max-width: 768px) {
    .company-content {
        flex-direction: column;
    }
    
    .company-stats {
        margin-top: 20px;
        justify-content: center;
    }
    
    .company-links {
        margin-top: 30px;
        text-align: center;
    }
}

/* Footer Responsiveness */
@media screen and (max-width: 768px) {
    .footer {
        text-align: center;
        padding: 20px 0;
    }
}

/* Utility Classes for Responsive Design */
.hide-on-mobile {
    @media screen and (max-width: 768px) {
        display: none;
    }
}

.show-on-mobile {
    display: none;
    @media screen and (max-width: 768px) {
        display: block;
    }
}

/* Tablet-specific adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .overview-grid,
    .customs-grid,
    .learning-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large screen optimizations */
@media screen and (min-width: 1025px) {
    .container {
        padding: 0 40px;
    }
    
    .overview-grid,
    .customs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .learning-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Admin Dashboard Responsiveness */
@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .sources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .source-card {
        padding: 1rem;
    }
    
    .actions-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .sources-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .action-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Mobile download counter */
.download-counter {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.counter-item {
    text-align: center;
    width: auto;
}

.counter-number {
    font-size: 3rem;
}

.counter-label {
    font-size: 0.9rem;
}

/* Professional Stats Section Mobile */
.professional-stats {
    padding: 2rem 0;
    margin: 2rem 0;
}

.professional-stats h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.professional-stats p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.professional-stats .download-counter {
    flex-direction: column;
    gap: 2rem;
}

.professional-stats .counter-item {
    width: auto;
}

.professional-stats .counter-number {
    font-size: 3rem;
}

.professional-stats .counter-label {
    font-size: 0.9rem;
}

/* ========================================
   DOWNLOADS PAGE STYLES
   ======================================== */

/* Download Header Section */
.download-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 80px 0 60px;
    text-align: center;
}

.download-header .section-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00FF9D, #9D4EDD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-header .section-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Version Information */
.version-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
    justify-content: center;
}

.version-badge, .release-date, .file-size {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.version-badge {
    background: linear-gradient(135deg, #00FF9D, #9D4EDD);
    color: var(--dark-purple);
    font-weight: 600;
}

.version-badge i, .release-date i, .file-size i {
    font-size: 1.1rem;
}

/* Download Header Actions */
.download-header-actions {
    margin-top: 2rem;
}

.download-header-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Downloads Hero Section */
.downloads-hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 120px 0 80px;
}

.downloads-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.downloads-hero .hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00FF9D, #9D4EDD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.downloads-hero .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Version Information */
.version-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 2rem;
}

.version-badge, .release-date, .file-size {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.version-badge {
    background: linear-gradient(135deg, #00FF9D, #9D4EDD);
    color: var(--dark-purple);
    font-weight: 600;
}

.version-badge i, .release-date i, .file-size i {
    font-size: 1.1rem;
}

/* Download Counter Hero */
.download-counter-hero {
    display: flex;
    gap: 30px;
    margin-bottom: 2.5rem;
}

.download-counter-hero .counter-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

.download-counter-hero .counter-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--vibrant-green);
    margin-bottom: 5px;
}

.download-counter-hero .counter-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Latest Update Section */
.latest-update {
    background: var(--dark-purple);
    padding: 100px 0;
}

.update-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.update-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--vibrant-green);
}

.highlight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00FF9D, #9D4EDD);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.highlight-icon i {
    font-size: 1.5rem;
    color: var(--dark-purple);
}

.highlight-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--vibrant-green);
}

.highlight-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Changelog */
.changelog {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--vibrant-green);
}

.changelog-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.changelog-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.changelog-item .version {
    display: inline-block;
    background: var(--vibrant-green);
    color: var(--dark-purple);
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 15px;
}

.changelog-item .date {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.changelog-item ul {
    margin-top: 15px;
    padding-left: 20px;
}

.changelog-item li {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Download Statistics Section */
.download-stats {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00FF9D, #9D4EDD);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 2rem;
    color: var(--dark-purple);
}

.stat-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vibrant-green);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--vibrant-green);
}

.stat-trend i {
    font-size: 0.8rem;
}

/* Download Sources */
.download-sources {
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-sources h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--vibrant-green);
    text-align: center;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.source-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

.source-info i {
    color: var(--vibrant-green);
    font-size: 1.2rem;
}

.source-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vibrant-green);
}

/* Download Options Section */
.download-options {
    background: var(--dark-purple);
    padding: 100px 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.option-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 35px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.option-card.primary {
    border-color: var(--vibrant-green);
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1), rgba(157, 78, 221, 0.1));
}

.option-card.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00FF9D, #9D4EDD);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.option-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00FF9D, #9D4EDD);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-icon i {
    font-size: 1.5rem;
    color: var(--dark-purple);
}

.option-card h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 15px;
}

.option-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.option-features {
    list-style: none;
    margin-bottom: 30px;
}

.option-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.option-features i {
    color: var(--vibrant-green);
    font-size: 0.9rem;
}

.option-card .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Installation Guide Section */
.installation-guide {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00FF9D, #9D4EDD);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-purple);
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--vibrant-green);
    margin-bottom: 15px;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive Design for Downloads Page */
@media (max-width: 1024px) {
    .download-header .section-header h1 {
        font-size: 2.5rem;
    }
    
    .downloads-hero .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .downloads-hero .hero-text h1 {
        font-size: 3rem;
    }
    
    .update-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .update-highlights {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .download-header {
        padding: 60px 0 40px;
    }
    
    .download-header .section-header h1 {
        font-size: 2rem;
    }
    
    .version-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .downloads-hero {
        padding: 80px 0 60px;
    }
    
    .downloads-hero .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .version-info {
        flex-direction: column;
        align-items: center;
    }
    
    .download-counter-hero {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .sources-grid {
        grid-template-columns: 1fr;
    }
    
    .latest-update,
    .download-stats,
    .download-options,
    .installation-guide {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .downloads-hero .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .version-badge, .release-date, .file-size {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .highlight-card,
    .stat-card,
    .option-card,
    .step-card {
        padding: 20px;
    }
    
    .download-sources {
        padding: 25px;
    }
    
    .changelog {
        padding: 20px;
    }
}
