/* ====================================
   Responsive Styles
   ==================================== */

/* Tablet */
@media (max-width: 900px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text-side {
        align-items: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-avatar-side {
        order: -1;
    }

    .avatar-container {
        width: 160px;
        height: 160px;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero-section-v2 {
        padding: 50px 20px;
        margin: 12px 0 24px;
        border-radius: 20px;
    }

    .hero-content-wrapper {
        padding: 0;
    }

    .hero-text-side {
        align-items: center;
        width: 100%;
    }

    .hero-name {
        font-size: 36px;
    }

    .hero-description {
        font-size: 15px;
        text-align: center;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        align-items: stretch;
    }

    .hero-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
        font-size: 14px;
        box-sizing: border-box;
        text-align: center;
    }

    .hero-cta-btn i {
        font-size: 18px;
    }

    .avatar-container {
        width: 130px;
        height: 130px;
    }

    .avatar-glow {
        inset: -20px;
    }

    .hero-gradient-orb {
        filter: blur(40px);
    }

    .orb-1 {
        width: 200px;
        height: 200px;
    }

    .orb-2 {
        width: 150px;
        height: 150px;
    }

    .orb-3 {
        width: 120px;
        height: 120px;
    }

    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .interests-card {
        padding: 25px 20px;
    }

    .interest-item {
        padding: 20px 15px;
    }

    .interest-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .interest-icon-wrap i {
        font-size: 30px !important;
    }
}

/* ==================== SPA Mobile ==================== */

@media (max-width: 768px) {
    .spa-page {
        padding: 0 8px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .social-links a {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .version-cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .version-preview-image {
        height: 160px;
    }

    .version-card-content {
        padding: 16px;
    }

    .version-preview-overlay .version-card-icon {
        width: 52px;
        height: 52px;
    }

    .version-preview-overlay .version-card-icon i {
        font-size: 26px;
    }

    .version-title {
        font-size: 15px;
    }

    .version-description {
        font-size: 12px;
    }

    .version-card-arrow {
        bottom: 14px;
        right: 14px;
        width: 30px;
        height: 30px;
    }

    .version-card-arrow i {
        font-size: 16px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }

    .social-icons a i {
        font-size: 18px;
    }
}

/* ==================== Tool Card Mobile ==================== */

@media (max-width: 768px) {
    .tool-card {
        margin: 10px;
        border-radius: 8px;
    }

    .tool-card .result-value {
        font-size: 2.5rem;
        padding: 15px;
    }

    .tool-card .password-display {
        font-size: 1rem;
    }

    .tool-card .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .tool-card .button-container .mdui-btn {
        width: 100%;
        margin: 0;
    }
}

/* ==================== Clock Widget Mobile ==================== */

@media (max-width: 600px) {
    .clock-widget-card {
        padding: 20px 16px;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .clock-widget-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .clock-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .clock-icon-wrapper i {
        font-size: 28px;
    }

    .clock-time {
        font-size: 2.5rem;
        justify-content: center;
    }

    .clock-date {
        justify-content: center;
        font-size: 13px;
    }

    .clock-label {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .clock-holiday {
        font-size: 11px;
        padding: 5px 10px;
    }

    .clock-holiday .holiday-icon {
        font-size: 14px;
    }

    /* Weather Widget Mobile - Improved Layout */
    .weather-widget {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: 100%;
        max-width: none;
        order: -1;
        margin-bottom: 0;
        padding: 12px 14px;
        border-radius: 14px;
    }

    .weather-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .weather-icon {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .weather-icon i {
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        width: 100%;
        height: 100%;
    }

    .weather-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .weather-temp {
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
    }

    .weather-desc {
        font-size: 11px;
        line-height: 1.3;
    }

    .weather-location {
        font-size: 10px;
        margin-top: 0;
    }

    .weather-location i {
        font-size: 11px;
    }

    .weather-unit-toggle {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 8px;
        flex-shrink: 0;
    }
}

/* ==================== Countdown Promo Mobile ==================== */

@media (max-width: 600px) {
    .countdown-promo-card {
        padding: 20px;
        border-radius: 20px;
    }

    .countdown-promo-content {
        gap: 16px;
    }

    .countdown-promo-icon {
        width: 55px;
        height: 55px;
    }

    .countdown-promo-icon i {
        font-size: 28px;
    }

    .countdown-promo-title {
        font-size: 18px;
    }

    .countdown-promo-label {
        font-size: 11px;
    }

    .countdown-promo-desc {
        font-size: 12px;
    }

    .countdown-promo-arrow {
        width: 40px;
        height: 40px;
    }

    .countdown-promo-arrow i {
        font-size: 20px;
    }
}

/* ==================== Social Grid Mobile ==================== */

@media (max-width: 600px) {
    .social-grid {
        gap: 12px;
    }

    .social-card {
        padding: 16px 18px;
        min-width: 80px;
    }

    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .social-name {
        font-size: 11px;
    }
}

/* ==================== Mobile Navigation ==================== */

@media (max-width: 768px) {
    .mdui-toolbar .mdui-btn-icon.mdui-hidden-xs {
        display: none !important;
    }

    .mobile-menu {
        display: flex !important;
    }

    .mdui-appbar {
        position: relative;
        z-index: 1100;
    }

    #main-drawer {
        position: fixed;
        top: 56px;
        left: 0;
        height: calc(100% - 56px);
        width: 280px !important;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    }

    #main-drawer .mdui-list {
        padding-top: 8px;
    }

    body.mdui-drawer-body-left,
    body.mdui-drawer-body-right {
        transform: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mdui-drawer .mdui-list-item {
        padding: 12px 16px;
    }

    .mdui-drawer .mdui-list-item-icon {
        margin-right: 16px;
    }

    section {
        padding: 20px 0;
    }

    .mdui-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .interest-card {
        padding: 15px !important;
    }

    .interest-icon {
        font-size: 36px !important;
    }

    .mdui-typo-subheading {
        font-size: 14px !important;
    }

    .mdui-card {
        margin-bottom: 16px;
    }

    h2 {
        font-size: 1.5rem;
    }

    .mdui-typo-display-2 {
        font-size: 2rem !important;
    }

    footer {
        padding: 20px 0;
    }

    footer p {
        font-size: 14px;
    }

    #back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }

    #back-to-top i {
        font-size: 20px;
    }

    .mdui-appbar .mdui-toolbar {
        padding: 0 8px;
    }

    .logo-container img {
        width: 28px;
        height: 28px;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }
}