/* Mobile Responsive CSS for CV Dashboard */

/* Base Mobile Styles */
@media screen and (max-width: 768px) {
    * {
        box-sizing: border-box;
    }

    body {
        font-size: 14px;
        line-height: 1.5;
        overflow-x: hidden;
    }

    .dashboard {
        padding: 0;
        margin: 0;
        width: 100%;
        min-height: 100vh;
    }

    /* Header Mobile Optimization */
    .header {
        padding: 1rem;
        min-height: auto;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }

    .profile-info h1 {
        font-size: 1.5rem;
        margin: 0.5rem 0;
    }

    .profile-info .title {
        font-size: 0.9rem;
    }

    .profile-info .institution {
        font-size: 0.8rem;
    }

    .profile-badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* Contact Info Mobile */
    .contact-info {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .contact-item {
        justify-content: center;
        font-size: 0.8rem;
    }

    .contact-item svg {
        width: 16px;
        height: 16px;
    }

    /* Navigation Mobile */
    .nav-tabs {
        padding: 0 0.5rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
    }

    .nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        min-width: 80px;
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        flex-shrink: 0;
    }

    .tab-btn svg {
        width: 16px;
        height: 16px;
    }

    .tab-btn span {
        display: block;
        margin-top: 0.25rem;
    }

    /* Content Mobile */
    .content {
        padding: 1rem;
    }

    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
        min-height: auto;
    }

    .stat-content h3 {
        font-size: 1rem;
    }

    .stat-content p {
        font-size: 0.8rem;
    }

    /* Timeline Mobile */
    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        margin-bottom: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content .institution,
    .timeline-content .university {
        font-size: 0.8rem;
    }

    .details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Experience Grid Mobile */
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .exp-card {
        padding: 1rem;
    }

    .exp-card h3 {
        font-size: 1rem;
    }

    .exp-card .company,
    .exp-card .duration,
    .exp-card .type {
        font-size: 0.8rem;
    }

    /* Skills Grid Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-category {
        padding: 1rem;
    }

    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* Research Interests Mobile */
    .research-interests {
        gap: 0.5rem;
    }

    .interest-tag {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    /* Publications Mobile */
    .publications-list {
        gap: 1rem;
    }

    .pub-item {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .pub-content h4 {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .pub-content .authors,
    .pub-content .journal {
        font-size: 0.7rem;
    }

    .publication-actions {
        align-self: stretch;
    }

    .pdf-request-btn {
        width: 100%;
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    /* Metrics Grid Mobile */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .metric {
        padding: 1rem;
        text-align: center;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .metric-label {
        font-size: 0.8rem;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* CV PDF Grid Mobile */
    .cv-pdf-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pdf-card {
        padding: 1rem;
        text-align: center;
    }

    .pdf-card h3 {
        font-size: 1rem;
    }

    .pdf-card p {
        font-size: 0.8rem;
    }

    .download-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    /* Collaboration Mobile */
    .collaboration-header {
        text-align: center;
    }

    .collaboration-header p {
        font-size: 0.9rem;
    }

    .btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .collaboration-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        text-align: center;
        padding: 1rem;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-form-group label {
        font-size: 0.9rem;
    }

    .modal-form-group p,
    .modal-form-group li {
        font-size: 0.8rem;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-btn {
        width: 100%;
        padding: 0.75rem;
    }

    /* PDF Modal Mobile */
    .pdf-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 90vh;
    }

    .pdf-form-group {
        margin-bottom: 1rem;
    }

    .pdf-form-group label {
        font-size: 0.9rem;
    }

    .pdf-form-group input,
    .pdf-form-group select,
    .pdf-form-group textarea {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .pdf-form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pdf-form-actions button {
        width: 100%;
        padding: 0.75rem;
    }

    /* Theme Toggle Mobile */
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    /* Admin Link Mobile */
    .admin-link {
        top: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }

    /* Footer Mobile */
    .website-request-footer {
        padding: 2rem 1rem;
    }

    .request-content h3 {
        font-size: 1.2rem;
    }

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

    .request-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
        text-align: center;
    }

    /* Projects, Workshops, Internships Mobile */
    .projects-grid,
    .workshops-grid,
    .internships-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card,
    .workshop-card,
    .internship-card {
        padding: 1rem;
    }

    .project-card h4,
    .workshop-card h4,
    .internship-card h4 {
        font-size: 1rem;
    }

    /* Empty State Mobile */
    .empty-state {
        padding: 2rem 1rem;
        text-align: center;
    }

    .empty-state-icon {
        font-size: 2rem;
    }

    .empty-state-text {
        font-size: 1rem;
    }

    .empty-state-hint {
        font-size: 0.8rem;
    }

    /* Objective Section Mobile */
    .objective-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .objective-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .objective-section p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Small Mobile Devices (320px - 480px) */
@media screen and (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .profile-avatar {
        width: 70px;
        height: 70px;
    }

    .profile-info h1 {
        font-size: 1.3rem;
    }

    .tab-btn {
        min-width: 70px;
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
    }

    .stat-card,
    .exp-card,
    .skill-category {
        padding: 0.75rem;
    }

    .content {
        padding: 0.75rem;
    }

    .modal-content {
        width: 98%;
        margin: 0.5rem;
    }
}

/* Large Mobile Devices (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 0.5rem 1rem;
    }

    .profile-section {
        flex-direction: row;
        text-align: left;
    }

    .profile-avatar {
        width: 60px;
        height: 60px;
        margin: 0;
    }

    .nav-tabs {
        padding: 0.25rem 0.5rem;
    }

    .tab-btn {
        padding: 0.4rem 0.6rem;
    }

    .content {
        padding: 0.75rem;
    }
}

/* Touch Improvements */
@media (hover: none) and (pointer: coarse) {
    .clickable-card,
    .tab-btn,
    .btn,
    .skill-tag,
    .interest-tag {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-item a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0.5rem;
        margin: -0.5rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image,
    .modal-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}