/* ============================================
   MOBILE.CSS - Базовые стили для мобильных (0px+)
   Mobile-First: это базовые стили, применяются ко всем размерам
   ============================================ */

/* Container - Mobile Base */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography - Mobile Base */
h1 {
    font-size: var(--mobile-h1);
    line-height: 1.2;
}

h2 {
    font-size: var(--mobile-h2);
    line-height: 1.3;
}

h3 {
    font-size: var(--mobile-h3);
    line-height: 1.4;
}

h4 {
    font-size: clamp(1.125rem, 5vw, 1.25rem);
}

/* Touch Targets - Mobile */
button,
.btn-primary,
.btn-secondary,
.nav-link,
.social-card,
.link-card,
.hamburger {
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle,
#theme-toggle {
    min-height: 36px;
    min-width: 36px;
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    padding: 12px 16px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 24px;
}

/* Section Spacing - Mobile */
section {
    padding: var(--spacing-xl) 0;
}

/* Body font size - prevent too small text */
body {
    font-size: 16px;
}

/* ===== QUICK LINKS & SOCIAL GRID - Mobile Improvements ===== */
.links-grid {
    grid-template-columns: 1fr;
    /* Stack vertically for better mobile view */
    gap: 1.25rem;
    padding: 0 0.5rem;
    perspective: 1000px;
    /* For 3D effects if needed */
}

/* Premium Link Card Design */
/* Premium Link Card Design - Minimalist Green */
.links-grid .link-card {
    width: 100%;
    max-width: 100%;
    padding: 1.25rem 1.5rem;
    /* Compact padding */
    /* Reverse asymmetry for Explore cards: Top-Right & Bottom-Left rigid */
    border-radius: 24px 4px 24px 4px;
    background: #ffffff;
    border: 1px solid rgba(34, 139, 34, 0.15);
    box-shadow: 0 4px 15px rgba(34, 139, 34, 0.05);
    display: flex;
    flex-direction: row;
    /* No change to mobile.css, strictly inline index.html change */
    justify-content: flex-start;
    text-align: left;
    gap: 1.25rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.6s ease-out backwards;
}

/* Dark mode overrides */
[data-theme="dark"] .links-grid .link-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.links-grid .link-card:active {
    transform: scale(0.98);
}

.links-grid .link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.links-grid .link-card:nth-child(2) {
    animation-delay: 0.2s;
}

.links-grid .link-card:nth-child(3) {
    animation-delay: 0.3s;
}

.links-grid .link-card:nth-child(4) {
    animation-delay: 0.4s;
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 139, 34, 0.05);
    /* Very light green bg for icon */
    border-radius: 12px;
    box-shadow: none;
    flex-shrink: 0;
    color: var(--accent-color);
}

[data-theme="dark"] .card-icon {
    background: rgba(255, 255, 255, 0.05);
}

.link-card-content {
    flex: 1;
}

.link-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.link-card p {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.3;
    margin: 0;
}

/* Hide chevron here too if we want a cleaner look, or style it minimal */
.link-card .fa-chevron-right {
    color: var(--accent-color);
    opacity: 0.5 !important;
    font-size: 0.8rem !important;
}

.link-card-content {
    flex: 1;
}

.link-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.link-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.4;
    margin: 0;
}

/* Social Grid Improvements - Glass Mosaic (2-Column Tiles) */
.social-grid {
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns */
    gap: 1rem;
    padding: 0 0.5rem;
}

.social-card {
    width: 100%;
    padding: 1.5rem 1rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    /* Vertical stack */
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    /* Frosted Glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    aspect-ratio: 1 / 1;
    /* Square Tile */
    position: relative;
    overflow: hidden;
    min-height: auto;
}

[data-theme="dark"] .social-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.social-card:active {
    transform: scale(0.95);
    box-shadow: none;
}

.social-icon {
    font-size: 3rem;
    /* Large floating icon */
    margin: 0 0 1rem 0;
    width: auto;
    height: auto;
    display: block;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    color: var(--accent-color);
    /* Fallback */
}

/* Restore Original Brand Colors via inline style or specific classes */
.social-card.instagram .social-icon {
    background: -webkit-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    /* Force gradient */
}

.social-card.tiktok .social-icon {
    color: #000000 !important;
}

.social-card.youtube .social-icon {
    color: #FF0000 !important;
}

.social-card.facebook .social-icon {
    color: #1877F2 !important;
}

[data-theme="dark"] .social-card.tiktok .social-icon {
    color: #ffffff !important;
}

.social-card:active .social-icon {
    transform: scale(1.1) rotate(0deg);
}

.social-card-content {
    flex: initial;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.social-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem !important;
    color: var(--text-primary);
    text-transform: capitalize;
    letter-spacing: 0;
}

.social-card p {
    font-size: 0.9rem !important;
    /* Bigger */
    opacity: 0.7;
    margin-bottom: 0 !important;
    margin-top: 2rem !important;
    /* PLACED LOWER */
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #666;
}

/* Hide the Follow Button */
.social-link {
    display: none !important;
}


/* ===== FOOTER - Mobile ===== */
.footer {
    padding-top: 3rem;
    padding-bottom: 2rem;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.footer-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.footer-logo {
    position: relative;
    padding-left: 0;
    margin-bottom: 1.5rem;
    top: auto;
    transform: none;
}

.footer-links {
    position: relative;
    left: auto;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    top: auto;
}

.footer-social {
    position: relative;
    right: auto;
    top: auto;
    padding-right: 0;
    justify-content: center;
    gap: 1rem;
    transform: none;
}

.footer-sticker {
    display: none;
}