/**
 * SUGANRA Sticky Social Media Sidebar - Minimalist Elegant Concept
 * 
 * File: assets/css/sidebar-sticky.css
 * Component: Beautiful minimalist social media sidebar
 * Concept: Vertical line with floating icon dots
 * Responsive: Yes (hides on mobile)
 * 
 * @package SUGANRA
 * @since 1.0.0
 */

/* ========================================
   CSS Variables - Minimalist Design
   ======================================== */

:root {
    /* Colors */
    --primary-green: #2d5016;
    --accent-green: #4a7c3c;
    --light-green: #6b9e54;
    --bg-color: #ffffff;
    --text-dark: #1a1a1a;
    --border-light: #e5e5e5;
    
    /* Dimensions */
    --icon-size: 18px;
    --dot-size: 42px;
    --line-width: 2px;
    --line-height: 220px;
    
    /* Animation */
    --transition: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease: ease-in-out;
}

/* ========================================
   Main Container - Vertical Line Design with White Background
   ======================================== */

.sidebar-social-sticky {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    
    display: none;
    cursor: grab;
    user-select: none;
}

.sidebar-social-sticky.grabbing {
    cursor: grabbing;
}

@media (min-width: 768px) {
    .sidebar-social-sticky {
        display: block;
    }
}

/* ========================================
   Container Structure - Transparent Background
   ======================================== */

.sidebar-social-sticky__container {
    position: relative;
    width: 80px;
    height: var(--line-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    
    background: transparent;
    border-radius: 50px;
    padding: 16px 0;
    border: none;
}

/* Vertical center line */
.sidebar-social-sticky__container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: var(--line-width);
    background: linear-gradient(180deg, transparent 0%, var(--primary-green) 20%, var(--primary-green) 80%, transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

/* ========================================
   List & Items
   ======================================== */

.sidebar-social-sticky__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: space-around;
    position: relative;
    z-index: 2;
}

.sidebar-social-sticky__item {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================
   Social Links - Dot Design with White Background
   ======================================== */

.sidebar-social-sticky__link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: var(--dot-size);
    height: var(--dot-size);
    
    font-size: var(--icon-size);
    text-decoration: none;
    
    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
}

/* Subtle inner shadow */
.sidebar-social-sticky__link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.03);
    pointer-events: none;
}

/* ========================================
   Platform Colors - Dot Design
   ======================================== */

/* Facebook */
.sidebar-social-sticky__link--facebook {
    color: #1877F2;
}

.sidebar-social-sticky__link--facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* WhatsApp */
.sidebar-social-sticky__link--whatsapp {
    color: #25D366;
}

.sidebar-social-sticky__link--whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Instagram */
.sidebar-social-sticky__link--instagram {
    color: #E1306C;
}

.sidebar-social-sticky__link--instagram:hover {
    background: #E1306C;
    color: white;
    border-color: #E1306C;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}

/* YouTube */
.sidebar-social-sticky__link--youtube {
    color: #FF0000;
}

.sidebar-social-sticky__link--youtube:hover {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* ========================================
   Focus & Accessibility
   ======================================== */

.sidebar-social-sticky__link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.2);
}

.sidebar-social-sticky__link:active {
    transform: scale(0.95);
}

/* ========================================
   Animations
   ======================================== */

@keyframes slideInDots {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-social-sticky {
    animation: slideInDots 0.6s ease-out 0.1s both;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (min-width: 768px) and (max-width: 1024px) {
    :root {
        --icon-size: 16px;
        --dot-size: 38px;
        --line-height: 180px;
    }
    
    .sidebar-social-sticky {
        right: 2rem;
    }
}

@media (min-width: 1440px) {
    :root {
        --icon-size: 20px;
        --dot-size: 48px;
        --line-height: 260px;
    }
}

/* ========================================
   Dark Mode Support
   ======================================== */

@media (prefers-color-scheme: dark) {
    .sidebar-social-sticky__link {
        background: #FFFFF0;
        border-color: #FAEBD7;
    }
    
    .sidebar-social-sticky__container::before {
        background: linear-gradient(180deg, transparent 0%, rgba(107, 158, 84, 0.5) 20%, rgba(107, 158, 84, 0.5) 80%, transparent 100%);
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .sidebar-social-sticky__link {
        transition: none;
    }
    
    .sidebar-social-sticky {
        animation: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .sidebar-social-sticky {
        display: none !important;
    }
}

/* ========================================
   Prevent Dragging & Selection
   ======================================== */

/* Icons themselves should not be draggable */
.sidebar-social-sticky__link {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ========================================
   Utility Classes
   ======================================== */

.sidebar-social-sticky--hidden {
    display: none !important;
}

.sidebar-social-sticky--always-visible {
    display: block !important;
}