/* responsive.css - FIXED Mobile Styles */

/* ===== MOBILE OVERLAY ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== SIDEBAR MOBILE STYLES ===== */
#sidebar {
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent body scroll when sidebar is open */
body.sidebar-open {
    overflow: hidden;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet & Mobile (1024px and below) */
@media (max-width: 1024px) {
    /* Show mobile toggle */
    .mobile-toggle {
        display: flex !important;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1000;
        background: var(--card-bg);
        border: 2px solid var(--pink);
        border-radius: 10px;
        padding: 12px;
        cursor: pointer;
        box-shadow: var(--shadow);
        transition: var(--transition);
        width: 44px;
        height: 44px;
    }
    
    .mobile-toggle:hover {
        background: var(--pink-light);
        transform: scale(1.1);
    }
    
    .mobile-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--pink-dark);
        margin: 4px 0;
        border-radius: 1px;
        transition: var(--transition);
        transform-origin: center;
    }
    
    /* Hamburger to X animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
        width: 20px;
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
        width: 20px;
    }
    
    /* Hide sidebar by default on mobile */
    #sidebar {
        left: -280px;
        width: 280px;
        max-width: 85%;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
    }
    
    #sidebar.active {
        left: 0;
    }
    
    /* Adjust main content */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
        padding: 20px;
        padding-top: 80px;
        transition: transform 0.3s ease;
    }
    
    /* Push content when sidebar is open */
    body.sidebar-open .main-content {
        transform: translateX(280px);
    }
    
    /* Header adjustments */
    .main-header {
        padding: 30px 20px !important;
        margin: 0 0 20px 0 !important;
    }
    
    .kawaii-title {
        font-size: 2rem !important;
        padding: 0 10px;
    }
    
    .kawaii-title span {
        font-size: 1.5rem !important;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* Content sections */
    .content-sections {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    /* Mobile toggle position */
    .mobile-toggle {
        top: 10px;
        left: 10px;
        padding: 10px;
        width: 40px;
        height: 40px;
    }
    
    .mobile-toggle span {
        width: 18px;
        height: 2px;
        margin: 3px 0;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
    }
    
    /* Sidebar width */
    #sidebar {
        width: 260px;
        left: -260px;
    }
    
    body.sidebar-open .main-content {
        transform: translateX(260px);
    }
    
    /* Header actions */
    .header-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
    
    .btn-theme, .user-info {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    /* Section content */
    .section-content {
        padding: 20px !important;
    }
    
    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Title adjustments */
    .kawaii-title {
        font-size: 1.8rem !important;
    }
    
    .kawaii-title span {
        font-size: 1.3rem !important;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Mobile toggle */
    .mobile-toggle {
        top: 8px;
        left: 8px;
        padding: 8px;
        width: 36px;
        height: 36px;
    }
    
    .mobile-toggle span {
        width: 16px;
        height: 2px;
        margin: 2.5px 0;
    }
    
    /* Sidebar */
    #sidebar {
        width: 240px;
        left: -240px;
    }
    
    body.sidebar-open .main-content {
        transform: translateX(240px);
    }
    
    /* Header */
    .main-header {
        padding: 20px 15px !important;
    }
    
    .kawaii-title {
        font-size: 1.6rem !important;
    }
    
    .kawaii-title span {
        font-size: 1.2rem !important;
    }
    
    /* Stats */
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 28px;
    }
    
    /* About */
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .about-info h3 {
        font-size: 22px;
    }
    
    /* Skills */
    .skills {
        gap: 8px;
    }
    
    .skill {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* Content padding */
    .main-content {
        padding: 15px !important;
        padding-top: 70px !important;
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .section-header h2 {
        font-size: 18px;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .main-header {
        padding: 20px !important;
        min-height: auto;
    }
    
    .kawaii-title {
        font-size: 1.8rem !important;
        margin: 10px 0 !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #sidebar {
        overflow-y: auto;
        padding-top: 60px;
    }
}

/* Desktop (1025px and above) */
@media (min-width: 1025px) {
    .mobile-toggle {
        display: none !important;
    }
    
    .mobile-overlay {
        display: none !important;
    }
    
    #sidebar {
        left: 0 !important;
        transform: none !important;
    }
    
    .main-content {
        margin-left: 250px !important;
        transform: none !important;
    }
}

/* Print Styles */
@media print {
    .mobile-toggle,
    .mobile-overlay,
    .btn-theme,
    .user-info,
    .contact-card,
    .sakura {
        display: none !important;
    }
    
    #sidebar {
        position: relative;
        left: 0 !important;
        width: 100%;
        height: auto;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }
    
    .stat-card,
    .content-section {
        break-inside: avoid;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

