/**
 * Special Dating - Core Styles
 * Shared variables and base layout
 */

:root {
    /* Brand colors */
    --sd-primary: #ff4081;
    --sd-primary-light: #ff80ab;
    --sd-primary-dark: #c51162;
    --sd-gradient: linear-gradient(135deg, #ff6b9d 0%, #ff4081 50%, #f50057 100%);
    --sd-gradient-header: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ff6b9d 100%);

    /* Neutral colors */
    --sd-white: #ffffff;
    --sd-gray-50: #fafafa;
    --sd-gray-100: #f5f5f5;
    --sd-gray-200: #eeeeee;
    --sd-gray-300: #e0e0e0;
    --sd-gray-400: #bdbdbd;
    --sd-gray-500: #9e9e9e;
    --sd-gray-600: #757575;
    --sd-gray-700: #616161;
    --sd-gray-800: #424242;
    --sd-gray-900: #212121;

    /* Accent colors */
    --sd-success: #4caf50;
    --sd-info: #2196f3;
    --sd-warning: #ff9800;
    --sd-danger: #f44336;
    --sd-superlike: #00bcd4;

    /* Shadows */
    --sd-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --sd-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --sd-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --sd-shadow-card: 0 8px 30px rgba(0,0,0,0.15);

    /* Border radius */
    --sd-radius-sm: 8px;
    --sd-radius-md: 12px;
    --sd-radius-lg: 16px;
    --sd-radius-xl: 20px;
    --sd-radius-round: 50%;

    /* Spacing */
    --sd-spacing-xs: 4px;
    --sd-spacing-sm: 8px;
    --sd-spacing-md: 16px;
    --sd-spacing-lg: 24px;
    --sd-spacing-xl: 32px;

    /* Typography */
    --sd-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Layout */
    --sd-sidebar-width: 280px;
    --sd-right-sidebar-width: 300px;
    --sd-mobile-nav-height: 60px;
    --sd-header-height: 60px;
}

/* Base reset for SD pages */
.sd-page {
    font-family: var(--sd-font-family);
    color: var(--sd-gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.sd-page *,
.sd-page *::before,
.sd-page *::after {
    box-sizing: border-box;
}

/* ========================================
   Desktop Layout: sidebar | content | right-sidebar
   ======================================== */
.sd-layout {
    display: flex;
    min-height: 100vh;
    background: var(--sd-gray-50);
}

/* Left sidebar - desktop only */
.sd-sidebar {
    width: var(--sd-sidebar-width);
    background: var(--sd-white);
    border-right: 1px solid var(--sd-gray-200);
    padding: var(--sd-spacing-lg);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Main content area */
.sd-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: var(--sd-spacing-xl);
    min-height: 100vh;
}

/* Right sidebar - desktop only */
.sd-right-sidebar {
    width: var(--sd-right-sidebar-width);
    background: var(--sd-white);
    border-left: 1px solid var(--sd-gray-200);
    padding: var(--sd-spacing-lg);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

/* ========================================
   Mobile Bottom Navigation
   ======================================== */
.sd-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--sd-mobile-nav-height);
    background: var(--sd-white);
    border-top: 1px solid var(--sd-gray-200);
    z-index: 1000;
    padding: 0;
}

.sd-mobile-nav__list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sd-mobile-nav__item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sd-mobile-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--sd-gray-500);
    font-size: 11px;
    padding: 6px;
    transition: color 0.2s;
    position: relative;
}

.sd-mobile-nav__link--active,
.sd-mobile-nav__link:hover {
    color: var(--sd-primary);
}

.sd-mobile-nav__link svg {
    width: 24px;
    height: 24px;
}

.sd-mobile-nav__badge {
    position: absolute;
    top: 2px;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--sd-primary);
    border-radius: var(--sd-radius-round);
}

/* ========================================
   Mobile header
   ======================================== */
.sd-mobile-header {
    display: none;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sd-header-height);
    background: var(--sd-gradient-header);
    z-index: 999;
    padding: 0 var(--sd-spacing-md);
    align-items: center;
    justify-content: space-between;
}

.sd-mobile-header__logo img {
    height: 36px;
    width: auto;
}

.sd-mobile-header__logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--sd-primary-dark);
}

.sd-mobile-header__logo-text span {
    color: var(--sd-primary);
}

.sd-mobile-header__menu-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--sd-radius-round);
    background: rgba(255,255,255,0.3);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--sd-gray-800);
}

/* ========================================
   Sidebar profile info
   ======================================== */
.sd-sidebar-profile {
    text-align: center;
    margin-bottom: var(--sd-spacing-lg);
    padding-bottom: var(--sd-spacing-lg);
    border-bottom: 1px solid var(--sd-gray-200);
}

.sd-sidebar-profile__avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--sd-radius-round);
    object-fit: cover;
    margin-bottom: var(--sd-spacing-sm);
}

.sd-sidebar-profile__name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 var(--sd-spacing-xs);
}

.sd-sidebar-profile__boost {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px solid var(--sd-primary);
    color: var(--sd-primary);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: var(--sd-spacing-md);
}

.sd-sidebar-profile__stats {
    display: flex;
    justify-content: space-around;
    gap: var(--sd-spacing-sm);
}

.sd-sidebar-profile__stat {
    text-align: center;
}

.sd-sidebar-profile__stat-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.sd-sidebar-profile__stat-label {
    font-size: 11px;
    color: var(--sd-gray-500);
    text-transform: capitalize;
}

/* ========================================
   Sidebar navigation
   ======================================== */
.sd-sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sd-sidebar-nav__item {
    margin-bottom: 2px;
}

.sd-sidebar-nav__link {
    display: flex;
    align-items: center;
    gap: var(--sd-spacing-sm);
    padding: 10px 12px;
    border-radius: var(--sd-radius-sm);
    color: var(--sd-gray-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.sd-sidebar-nav__link:hover {
    background: var(--sd-gray-100);
    color: var(--sd-gray-900);
}

.sd-sidebar-nav__link--active {
    color: var(--sd-primary);
    background: rgba(255, 64, 129, 0.06);
}

.sd-sidebar-nav__link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.sd-sidebar-nav__badge {
    margin-left: auto;
    background: var(--sd-primary);
    color: var(--sd-white);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Sidebar footer */
.sd-sidebar-footer {
    margin-top: auto;
    padding-top: var(--sd-spacing-lg);
    border-top: 1px solid var(--sd-gray-200);
}

.sd-sidebar-footer a {
    display: flex;
    align-items: center;
    gap: var(--sd-spacing-sm);
    padding: 8px 12px;
    color: var(--sd-gray-600);
    text-decoration: none;
    font-size: 14px;
    border-radius: var(--sd-radius-sm);
    transition: all 0.2s;
}

.sd-sidebar-footer a:hover {
    background: var(--sd-gray-100);
    color: var(--sd-gray-900);
}

/* ========================================
   Right sidebar sections
   ======================================== */
.sd-rsidebar-section {
    margin-bottom: var(--sd-spacing-xl);
}

.sd-rsidebar-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sd-spacing-md);
}

.sd-rsidebar-section__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.sd-rsidebar-section__refresh {
    background: none;
    border: none;
    color: var(--sd-gray-400);
    cursor: pointer;
    padding: 4px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .sd-right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .sd-sidebar {
        display: none;
    }

    .sd-right-sidebar {
        display: none;
    }

    .sd-mobile-nav {
        display: block;
    }

    .sd-mobile-header {
        display: flex;
    }

    .sd-content {
        padding: var(--sd-spacing-md);
        padding-bottom: calc(var(--sd-mobile-nav-height) + var(--sd-spacing-md));
    }

    .sd-layout {
        flex-direction: column;
    }
}
