/* ----------------------------------------------------
 * LinkDutch Theme - Modern Minimal Dual-Tone Grid
 * Extraction, Palette, Typography & Structural Mechanics
 * ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette Extracted Directly from reference mockup */
    --bg-dark-color: #131e29;         /* Rich charcoal canvas background */
    --bg-header-color: #255d91;       /* Medium Slate Blue Header Curving top */
    --card-accent-bg: #2a69a3;        /* Bright Steel Blue Accent cards */
    --card-dark-bg: #273544;          /* Soft Dark Grey secondary cards */
    
    /* Typography & Sizing */
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Rounded Borders and Elevations */
    --border-radius-card: 24px;
    --border-radius-circle: 50%;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Body Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark-color);
    font-family: var(--font-primary);
    color: var(--text-white);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* Sleek Centered Device-Like Container Frame */
.theme-container {
    background-color: var(--bg-dark-color);
    width: 100%;
    max-width: 480px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 840px;
}

/* Distinctive Header Block with Curved Border */
.profile-header {
    background-color: var(--bg-header-color);
    height: 180px;
    position: relative;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Floating Menu/Action Bar inside header */
.header-menu-bar {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
}

.menu-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--text-white);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Avatar positioning overlapping curve precisely as referenced */
.profile-avatar-container {
    position: absolute;
    bottom: -64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: var(--border-radius-circle);
    overflow: hidden;
    border: 4px solid var(--bg-dark-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Profile Structure */
.profile-content {
    flex: 1;
    padding: 85px 28px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-info {
    text-align: center;
    margin-bottom: 24px;
    width: 100%;
}

.profile-name {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verified-badge {
    color: #3b82f6;
    font-size: 1.35rem;
}

.profile-bio {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Social Media Channels Panel */
.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.social-icon-btn {
    color: var(--text-muted);
    font-size: 1.4rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
}

.social-icon-btn:hover {
    color: var(--text-white);
    transform: translateY(-3px);
}

/* Dual Column Grid Link Cards */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 30px;
}

.grid-card {
    text-decoration: none;
    border-radius: var(--border-radius-card);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-height: 160px;
}

/* Custom Interactive Micro-shimmer on hover */
.grid-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: 0.5s;
}

.grid-card:hover::after {
    left: 100%;
}

/* Card Styling Themes */
.grid-card.accent {
    background-color: var(--card-accent-bg);
    color: var(--text-white);
}

.grid-card.dark {
    background-color: var(--card-dark-bg);
    color: var(--text-white);
}

/* Hover Physics */
.grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.grid-card.accent:hover {
    filter: brightness(1.1);
}

.grid-card.dark:hover {
    background-color: #314254;
}

/* Card Contents Styles */
.card-icon {
    font-size: 2rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* Interactive Details Drawer for Action Modals */
.additional-drawer {
    background-color: var(--card-dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px 28px 0 0;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 480px;
    max-height: 70%;
    z-index: 100;
    transition: var(--transition-smooth);
    padding: 24px;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.5);
}

.additional-drawer.active {
    transform: translateX(-50%) translateY(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.drawer-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

#closeDrawerBtn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

#closeDrawerBtn:hover {
    color: var(--text-white);
}

/* Shared Elegant Footer elements */
.theme-footer {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-powered {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-powered a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
}

.footer-powered a:hover {
    text-decoration: underline;
}

/* Utility Hidden state */
.hidden {
    display: none !important;
}

/* Adaptive Responsiveness adjustments for wide displays */
@media (max-width: 480px) {
    body {
        padding: 0;
    }
    .theme-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
    .additional-drawer {
        border-radius: 28px 28px 0 0;
        max-width: 100%;
    }
}