/* Filename: style.css
   Author: 0x6ick
   Description: Main stylesheet for 6ickzone
*/

/* --- THEME VARIABLES --- */
:root {
    /* Dark Mode (Default) */
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --bg-header: rgba(13, 17, 23, 0.8);
    --border: #30363d;
    --text-main: #c9d1d9;
    --text-header: #ffffff;
    --text-muted: #8b949e;
    --accent: #58a6ff;
    --btn-hover: #1f2428;
    --skeleton-base: #1f2428;
    --skeleton-highlight: #30363d;
    --shadow: 10px 0 30px rgba(0,0,0,0.5);
}

[data-theme="light"] {
    /* Light Mode Overrides */
    --bg-body: #f6f8fa;
    --bg-card: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.8);
    --border: #d0d7de;
    --text-main: #1f2328;
    --text-header: #1f2328;
    --text-muted: #656d76;
    --accent: #0969da;
    --btn-hover: #f3f4f6;
    --skeleton-base: #eaeef2;
    --skeleton-highlight: #f6f8fa;
    --shadow: 5px 0 15px rgba(0,0,0,0.1);
}

/* --- BASE STYLES --- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0; padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

.mono { font-family: 'JetBrains Mono', monospace; }
a { text-decoration: none; color: inherit; }

/* --- HEADER / NAVBAR --- */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: 60px; background: var(--bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    transition: background 0.3s, border-color 0.3s;
}

.nav-left { display: flex; align-items: center; }

.menu-toggle {
    font-size: 1.5rem; cursor: pointer; color: var(--text-main);
    margin-right: 20px; transition: 0.2s;
}
.menu-toggle:hover { color: var(--accent); }

.brand { font-size: 1.2rem; font-weight: 700; color: var(--text-header); }
.brand span { color: var(--accent); }

.theme-btn {
    background: none; border: 1px solid var(--border);
    color: var(--text-main);
    width: 35px; height: 35px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.theme-btn:hover { background: var(--btn-hover); color: var(--accent); border-color: var(--accent); }

/* --- SIDEBAR --- */
.sidebar {
    position: fixed; top: 0; left: -280px;
    width: 280px; height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
    z-index: 1001; padding: 20px;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow);
}

.sidebar.active { left: 0; }

.close-btn {
    align-self: flex-end; font-size: 1.5rem; cursor: pointer; 
    margin-bottom: 20px; color: var(--text-muted);
}

.sb-profile { text-align: center; margin-bottom: 30px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.sb-avatar { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--border); margin-bottom: 10px; }

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; border-radius: 6px; color: var(--text-muted);
    margin-bottom: 5px; transition: 0.2s;
}
.nav-item:hover { background: var(--btn-hover); color: var(--accent); }
.nav-item i { width: 20px; text-align: center; }

.overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    opacity: 0; pointer-events: none; transition: 0.3s; z-index: 999;
}
.overlay.active { opacity: 1; pointer-events: auto; }

/* --- MAIN CONTENT & FEED --- */
.container {
    max-width: 900px; margin: 80px auto 40px; padding: 0 20px;
}

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.sec-title { font-size: 1rem; color: var(--accent); display: flex; align-items: center; gap: 10px; }

.feed-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; margin-bottom: 50px;
}

.feed-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, background 0.3s;
    display: flex; flex-direction: column; 
    height: auto; 
    min-height: 100%; 
}
.feed-card:hover { transform: translateY(-5px); border-color: var(--text-muted); }

.card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }

.card-title { font-size: 1.1rem; margin: 0 0 10px; font-weight: 600; color: var(--text-header); line-height: 1.4; }
.card-excerpt { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; flex-grow: 1; }

.read-more-btn {
    margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--accent); font-weight: 600;
}
.read-more-btn:hover { text-decoration: underline; }

.tool-card { border-left: 3px solid var(--accent); }
.music-card { border-left: 3px solid #a371f7; }

/* --- SKELETON LOADING --- */
.skeleton { 
    background: var(--skeleton-base);
    background: linear-gradient(90deg, var(--skeleton-base) 25%, var(--skeleton-highlight) 50%, var(--skeleton-base) 75%);
    background-size: 200% 100%;
    border-radius: 4px; 
    animation: shimmer 1.5s infinite linear;
}
.sk-title { height: 24px; width: 80%; margin-bottom: 15px; }
.sk-text { height: 16px; width: 100%; margin-bottom: 8px; }
.sk-text-short { height: 16px; width: 60%; }

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* --- ROCKET ANIMATION OVERLAY --- */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-body); 
    z-index: 2000;
    display: none; 
    align-items: center; justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(5px);
}

.loader-overlay.active { display: flex; }

.loader-content { text-align: center; position: relative; }

.rocket-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.rocket-icon {
    font-size: 4rem; color: var(--accent);
    filter: drop-shadow(0 0 15px var(--accent));
    animation: rumble 0.1s infinite; 
}

.bolt-icon {
    position: absolute; bottom: -10px; right: -10px;
    font-size: 1.5rem; color: #e3b341;
    animation: flash 0.5s infinite alternate;
}

.countdown-text {
    font-size: 5rem; font-weight: 800;
    color: var(--text-header);
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(88, 166, 255, 0.5);
}

.loader-status {
    color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px;
}

.destination-url { color: var(--accent); font-weight: bold; }

@keyframes rumble {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-1px, 1px) rotate(-1deg); }
    50% { transform: translate(1px, -1px) rotate(1deg); }
    75% { transform: translate(-1px, -1px) rotate(-1deg); }
    100% { transform: translate(1px, 1px) rotate(1deg); }
}

@keyframes launch {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    50% { transform: translateY(20px) scale(0.8); opacity: 1; } 
    100% { transform: translateY(-1000px) scale(1.5); opacity: 0; } 
}

@keyframes flash { from { opacity: 0.2; } to { opacity: 1; } }

.rocket-launching .rocket-icon {
    animation: launch 0.8s cubic-bezier(0.5, 0, 0.5, 1) forwards;
}

/* --- ABOUT PAGE: PROFILE HEADER --- */
.profile-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: visible !important; 
    margin-bottom: 60px; 
    text-align: center;
    position: relative;
    z-index: 1;
}

.profile-banner {
    height: 150px;
    background: linear-gradient(120deg, #0d1117, #1f2428, #0969da);
    border-radius: 12px 12px 0 0;
    position: relative;
    z-index: 0;
}

.profile-banner::after,
.profile-banner::before {
    content: none !important;
    display: none !important;
}

.profile-avatar-wrapper {
    width: 130px; height: 130px;
    margin: -65px auto 15px;
    background: var(--bg-body);
    padding: 5px; 
    border-radius: 50%;
    position: relative;
    z-index: 99; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.profile-avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    display: block;
    background-color: #000;
}

.profile-name { font-size: 2rem; margin: 0; color: var(--text-header); }
.profile-alias { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; display: block; }

.badge-container { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }

.badge {
    font-size: 0.75rem; padding: 4px 12px;
    border-radius: 20px; font-weight: 600;
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 6px;
}

.badge.gold { background: rgba(212, 167, 44, 0.1); color: #d4a72c; border-color: rgba(212, 167, 44, 0.3); }
.badge.green { background: rgba(46, 160, 67, 0.1); color: #3fb950; border-color: rgba(46, 160, 67, 0.3); }
.badge.blue { background: rgba(56, 139, 253, 0.1); color: #58a6ff; border-color: rgba(56, 139, 253, 0.3); }

/* --- ABOUT PAGE: GRID LAYOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 20px;
    margin-bottom: 40px; 
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.left-col { display: flex; flex-direction: column; gap: 20px; }
.right-col { display: flex; flex-direction: column; gap: 20px; }

.skill-tag {
    display: inline-block;
    padding: 4px 8px; margin: 0 4px 8px 0;
    background: var(--btn-hover);
    border: 1px solid var(--border);
    border-radius: 4px; font-size: 0.8rem;
    color: var(--text-main); font-family: 'JetBrains Mono', monospace;
}

.warning-box {
    margin-top: 30px; padding: 15px;
    border: 1px solid rgba(248, 81, 73, 0.4);
    background: rgba(248, 81, 73, 0.1);
    border-radius: 6px; color: #ff7b72; font-size: 0.85rem;
    display: flex; gap: 10px; align-items: flex-start;
}

.lang-switcher { background: var(--card); border: 1px solid var(--border); color: var(--text-header); padding: 5px 10px; border-radius: 8px; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
        .share-container { margin-top: 50px; padding: 20px; background: rgba(99, 102, 241, 0.05); border-radius: 12px; border: 1px dashed var(--border); text-align: center; }
        .social-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 8px; text-decoration: none; font-size: 0.85rem; color: white; margin: 5px; transition: 0.3s; }
        .social-btn-twitter { background: #1DA1F2; }
        .social-btn-facebook { background: #1877F2; }
        .social-btn-linkedin { background: #0A66C2; }
        .social-btn-whatsapp { background: #25D366; }
        .social-btn:hover { opacity: 0.8; transform: translateY(-2px); }
        .mono { font-family: 'JetBrains Mono', monospace; }