/* RESPONSIVE.CSS - Mobile and tablet responsive styles */

/* Tablet - 768px and below */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-2xl: 2.5rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    /* Navigation */
    .nav-container {
        padding: 0 var(--spacing-md);
    }

    .nav-links {
        gap: var(--spacing-md);
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* Hero Section */
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-mascot {
        max-width: 300px;
    }

    /* Two Parts Section */
    .two-parts-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .part-card {
        padding: var(--spacing-lg);
    }

    /* Showcase Features */
    .showcase-features {
        grid-template-columns: 1fr;
    }

    /* Feature Grid */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Permission Modes */
    .modes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Flow Diagram */
    .flow-diagram {
        gap: 0.5rem;
    }

    .flow-arrow {
        font-size: 1.5rem;
        transform: rotate(90deg);
        margin: var(--spacing-sm) 0;
    }

    .flow-step {
        font-size: 0.85rem;
    }

    .step-icon {
        font-size: 2rem;
    }

    /* Screenshots Grid */
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-item img {
        max-height: 300px;
        object-fit: cover;
    }

    /* Status Grid */
    .status-grid {
        grid-template-columns: 1fr;
    }

    /* Roadmap Grid */
    .roadmap-grid {
        grid-template-columns: 1fr;
    }

    /* Security Section */
    .security-content {
        grid-template-columns: 1fr;
    }

    .security-icon {
        width: 150px;
        height: 150px;
    }

    /* Dev Grid */
    .dev-grid {
        grid-template-columns: 1fr;
    }

    /* Permission Modes Mobile */
    .modes-grid {
        grid-template-columns: 1fr;
    }

    /* Repo Grid */
    .repo-grid {
        grid-template-columns: 1fr;
    }

    /* Sections */
    section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    /* Footer */
    .footer-links {
        gap: var(--spacing-md);
    }
}

/* Mobile - 480px and below */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-2xl: 1.5rem;
        --spacing-xl: 1.5rem;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1rem; }
    h4 { font-size: 0.95rem; }

    /* Navigation */
    .nav-container {
        padding: 0 var(--spacing-sm);
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .nav-links {
        gap: var(--spacing-sm);
        font-size: 0.75rem;
    }

    .nav-links a {
        font-size: 0.7rem;
    }

    .nav-links .btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    /* Hero Section */
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .hero-title {
        font-size: 1.75rem;
        background: none;
        -webkit-text-fill-color: unset;
        color: var(--accent-gold);
    }

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

    .hero-text {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .hero-badges {
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    /* Section Padding */
    section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    section > h2 {
        margin-bottom: var(--spacing-lg);
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    /* Part Cards */
    .part-card {
        padding: var(--spacing-lg);
    }

    .part-icon {
        width: 60px;
        height: 60px;
    }

    .feature-chips {
        gap: 0.4rem;
    }

    .chip {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    /* Feature Cards */
    .feature-card h3 {
        margin-bottom: 0.5rem;
    }

    .feature-card p {
        margin-bottom: var(--spacing-sm);
        font-size: 0.9rem;
    }

    /* Carousel */
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .screenshot-caption {
        font-size: 0.8rem;
    }

    /* Flow Diagram */
    .flow-step p {
        font-size: 0.75rem;
    }

    .step-icon {
        font-size: 1.5rem;
    }

    .flow-explanation {
        padding: var(--spacing-md);
    }

    .flow-explanation ol {
        margin-left: var(--spacing-md);
    }

    .flow-explanation li {
        font-size: 0.9rem;
    }

    /* Status Grid */
    .status-column h3 {
        font-size: 1rem;
    }

    .status-column li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    /* Roadmap */
    .roadmap-status {
        font-size: 0.7rem;
    }

    .roadmap-card li {
        font-size: 0.85rem;
    }

    /* Security */
    .security-icon {
        width: 120px;
        height: 120px;
    }

    .security-features li {
        font-size: 0.95rem;
    }

    /* Dev Cards */
    .dev-card h3 {
        margin-bottom: 0.5rem;
    }

    .dev-card p {
        font-size: 0.9rem;
    }

    /* Repo Cards */
    .repo-card {
        padding: var(--spacing-lg);
    }

    .repo-card img {
        width: 60px;
        height: 60px;
    }

    .repo-card h3 {
        margin-bottom: var(--spacing-sm);
    }

    .repo-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .repo-buttons .btn {
        width: 100%;
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-branding {
        gap: var(--spacing-sm);
    }

    .footer-branding img {
        width: 30px;
        height: 30px;
    }

    .footer-branding h4 {
        font-size: 1rem;
    }

    .footer-content p {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* Extra small - 320px and below */
@media (max-width: 320px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.1rem; }
    h3 { font-size: 0.95rem; }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .badge {
        font-size: 0.65rem;
    }

    .nav-links {
        font-size: 0.65rem;
    }
}

/* Large screens - 1440px and above */
@media (min-width: 1440px) {
    body {
        font-size: 1.05rem;
    }

    h1 { font-size: 4.5rem; }
    h2 { font-size: 2.75rem; }

    .hero-title {
        font-size: 4.5rem;
    }

    section {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }
}

/* Print styles */
@media print {
    .navbar,
    .carousel-controls,
    .hero-buttons {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    a {
        color: inherit;
    }
}
