/* Responsive Styles */

/* Mobile First Approach */

/* Small devices (phones, 576px and up) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid,
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .cv-creator {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .cv-preview-section {
        position: static;
        order: -1;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .dashboard-section {
        padding: 1rem;
    }

    .resume-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .resume-actions {
        width: 100%;
        justify-content: space-between;
    }

    .auth-form {
        margin: 1rem auto;
        padding: 1rem;
    }

    .blog-post-card {
        padding: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .cv-creator {
        grid-template-columns: 1fr 1fr;
    }

    .cv-preview-section {
        position: sticky;
        top: 100px;
    }

    .features-grid,
    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.5rem;
    }

    .cta h2 {
        font-size: 3rem;
    }

    .cta p {
        font-size: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .features-grid,
    .templates-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .cta {
        padding: 6rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero {
        padding: 6rem 0;
    }

    .features,
    .templates-preview {
        padding: 6rem 0;
    }
}

/* CV Template Responsive */
@media (max-width: 768px) {
    .cv-template {
        font-size: 11px;
        padding: 15px;
    }

    .professional-template .personal-info h1 {
        font-size: 20px;
    }

    .modern-template .personal-info h1 {
        font-size: 24px;
    }

    .creative-template .personal-info h1 {
        font-size: 28px;
    }

    .modern-template .cv-columns,
    .creative-template .creative-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modern-template .modern-skills {
        grid-template-columns: 1fr;
    }

    .creative-template .skills-cloud {
        justify-content: flex-start;
    }

    .professional-template .contact-info {
        flex-direction: column;
        gap: 5px;
    }

    .modern-template .contact-info,
    .creative-template .contact-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print styles for CV */
@media print {
    .cv-template {
        font-size: 10px;
        padding: 10px;
        margin: 0;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .creative-template .cv-header {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .modern-template .cv-header {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    .creative-template .skill-tag {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        color: #fff;
        border: 2px solid #000;
    }

    .btn-secondary {
        background-color: #fff;
        color: #000;
        border: 2px solid #000;
    }

    .main-header {
        background-color: #fff;
        border-bottom: 2px solid #000;
    }

    .main-footer {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .creative-template .cv-header::before {
        animation: none;
    }
}