/* ========================================
   Dramakolik Dreams - Social Media Profile
   Unique & Immersive Design
   ======================================== */

/* CSS Custom Properties */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    
    --accent-primary: #ff6b35;
    --accent-secondary: #f7931a;
    --accent-tertiary: #ffd93d;
    --accent-gradient: linear-gradient(135deg, #ff6b35, #f7931a, #ffd93d);
    
    --neon-cyan: #00f5ff;
    --neon-magenta: #ff00ff;
    --neon-purple: #8b5cf6;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 107, 53, 0.3);
    
    --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.15);
    --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
}

/* ========================================
   Animated Background
   ======================================== */
.bg-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: min(400px, 60vw);
    height: min(400px, 60vw);
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* ========================================
   Main Layout
   ======================================== */
.profile-container {
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
    min-height: 100vh;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Identity Panel (Left)
   ======================================== */
.identity-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 40px;
    height: fit-content;
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Profile Image */
.profile-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.image-frame {
    position: relative;
    width: 180px;
    height: 180px;
    padding: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 53, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 53, 0.5), 0 0 60px rgba(247, 147, 26, 0.3); }
}

.frame-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-tertiary);
    z-index: 2;
}

.frame-corner.top-left {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.frame-corner.top-right {
    top: -5px;
    right: -5px;
    border-left: none;
    border-bottom: none;
}

.frame-corner.bottom-left {
    bottom: -5px;
    left: -5px;
    border-right: none;
    border-top: none;
}

.frame-corner.bottom-right {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 4px);
    transition: var(--transition-smooth);
}

.image-frame:hover .profile-image {
    transform: scale(1.05);
}

.image-glitch {
    position: absolute;
    inset: 4px;
    background: var(--accent-gradient);
    border-radius: calc(var(--radius-lg) - 4px);
    opacity: 0;
    mix-blend-mode: overlay;
    transition: var(--transition-fast);
}

.image-frame:hover .image-glitch {
    animation: glitch 0.3s steps(2) infinite;
}

@keyframes glitch {
    0% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.3; transform: translate(-2px, 2px); }
    40% { opacity: 0; transform: translate(2px, -2px); }
    60% { opacity: 0.3; transform: translate(-2px, -2px); }
    80% { opacity: 0; transform: translate(2px, 2px); }
    100% { opacity: 0; transform: translate(0); }
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2px;
    color: #22c55e;
}

/* Identity Info */
.identity-info {
    text-align: center;
}

.username-label {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-primary);
}

.username {
    font-size: 28px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.location svg {
    width: 14px;
    height: 14px;
}

/* Bio Section */
.bio-section {
    padding: 20px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.bio-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent-primary);
    padding: 4px 10px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 4px;
}

.bio-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-accent), transparent);
}

.bio-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.social-link:hover::before {
    opacity: 0.15;
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

.social-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.social-link:hover[data-tooltip]::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   Content Panel (Center)
   ======================================== */
.content-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--border-subtle), transparent);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 25px;
    flex: 1;
}

.gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.gallery-title {
    font-size: 20px;
    font-weight: 700;
}

.gallery-tabs {
    display: flex;
    gap: 5px;
    background: var(--bg-tertiary);
    padding: 5px;
    border-radius: var(--radius-sm);
}

.tab {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    background: var(--accent-gradient);
    color: var(--bg-primary);
}

.tab svg {
    width: 18px;
    height: 18px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    animation: scaleIn 0.5s ease-out var(--delay) both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.overlay-stats {
    display: flex;
    gap: 15px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.overlay-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.overlay-stats svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   Activity Panel (Right)
   ======================================== */
.activity-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInRight 0.6s ease-out 0.4s both;
}

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

.section-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-subtle), transparent);
}

/* Highlights */
.highlights-section {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.highlights-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.highlights-scroll::-webkit-scrollbar {
    display: none;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: pointer;
}

.highlight-ring {
    width: 65px;
    height: 65px;
    padding: 3px;
    background: var(--accent-gradient);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.highlight-item:hover .highlight-ring {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.highlight-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.highlight-item span {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Activity Feed */
.activity-feed {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px;
    flex: 1;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.activity-item:hover {
    background: var(--bg-glass-hover);
    transform: translateX(5px);
}

.activity-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.activity-icon svg {
    width: 16px;
    height: 16px;
}

.activity-icon.love {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.activity-icon.follow {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.activity-icon.comment {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.activity-icon.mention {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.activity-content strong {
    color: var(--text-primary);
}

.activity-time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
}

/* Mutual Friends */
.mutual-friends {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.friends-avatars {
    display: flex;
    align-items: center;
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    margin-left: -10px;
    object-fit: cover;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.friend-avatar:first-child {
    margin-left: 0;
}

.friend-avatar:hover {
    transform: translateY(-5px) scale(1.1);
    z-index: 10;
}

.friend-avatar.more {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ========================================
   Floating Shapes
   ======================================== */
.floating-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border: 1px solid var(--border-subtle);
    opacity: 0.3;
}

.shape-1 {
    width: 100px;
    height: 100px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 20%;
    left: 10%;
    animation: morphFloat 15s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    bottom: 20%;
    right: 10%;
    animation: morphFloat 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 5%;
    animation: morphFloat 12s ease-in-out infinite;
    animation-delay: -5s;
}

@keyframes morphFloat {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) translate(0, 0);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        transform: rotate(90deg) translate(20px, -20px);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: rotate(180deg) translate(0, 20px);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: rotate(270deg) translate(-20px, 0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .profile-container {
        grid-template-columns: 280px 1fr;
        padding: 30px;
    }
    
    .activity-panel {
        display: none;
    }
}

@media (max-width: 900px) {
    .profile-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .identity-panel {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .profile-image-wrapper {
        width: 100%;
    }
    
    .image-frame {
        width: 140px;
        height: 140px;
    }
    
    .identity-info {
        width: 100%;
    }
    
    .bio-section {
        width: 100%;
    }
    
    .social-links {
        width: 100%;
    }
    
    .stats-bar {
        gap: 20px;
        padding: 20px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activity-panel {
        display: flex;
    }
}

@media (max-width: 500px) {
    .profile-container {
        padding: 15px;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ========================================
   Scrollbar Styling
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ========================================
   Selection Styling
   ======================================== */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}
