/* Layout.css - Main layout and structure styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: black;
    font-family: 'JetBrains Mono', monospace;
    color: white;
    margin: 0;
    padding: 0;
}

/* Header - exactly like your existing style */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    right: 55px; /* Don't overlap the sidebar */
    z-index: 1000;
}

.name {
    color: white;
    font-size: 40px;
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.name::before,
.name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.name::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.name::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    color: white;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.dropbtn::before,
.dropbtn::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dropbtn::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.dropbtn::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

/* Dropdown content */
.dropdown-content {
    display: block;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-family: 'JetBrains Mono', monospace;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

/* Main layout container */
.main-container {
    display: flex;
    height: 100vh;
}

/* Content area (left side) */
.content-area {
    flex: 1;
    background: black;
    padding-top: 70px; /* Account for reduced header height */
    padding-right: 55px; /* Account for sidebar width */
}

/* Right sidebar exactly as in mockup */
.right-sidebar {
    width: 55px;
    background: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1001;
}

/* All button at top */
.all-area {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #333;
    background: white;
    color: black;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 30px;
    font-weight: 500;
    transition: background-color 0.3s;
    writing-mode: horizontal-tb;
}

.all-area:hover {
    background-color: #f0f0f0;
}

.all-area.active {
    background-color: white;
}

/* Category items vertically */
.category-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 2px solid #333;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 30px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.category-item:hover {
    background-color: #f0f0f0;
}

.category-item.active {
    background-color: white;
}

.category-item:last-child {
    border-bottom: none;
}

/* Settings icon at bottom */
.settings-area {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid #333;
    background: white;
}

.settings-icon {
    font-size: 24px;
    color: black;
    cursor: pointer;
}

/* Glitch Animations */
@keyframes glitch-anim {
    0% { clip: rect(39px, 9999px, 71px, 0); transform: skew(0.4deg); }
    5% { clip: rect(18px, 9999px, 88px, 0); transform: skew(0.81deg); }
    10% { clip: rect(97px, 9999px, 18px, 0); transform: skew(0.4deg); }
    15% { clip: rect(39px, 9999px, 6px, 0); transform: skew(0.49deg); }
    20% { clip: rect(47px, 9999px, 89px, 0); transform: skew(0.1deg); }
    25% { clip: rect(4px, 9999px, 26px, 0); transform: skew(0.3deg); }
    30% { clip: rect(98px, 9999px, 81px, 0); transform: skew(0.48deg); }
    35% { clip: rect(100px, 9999px, 43px, 0); transform: skew(0.77deg); }
    40% { clip: rect(66px, 9999px, 96px, 0); transform: skew(0.93deg); }
    45% { clip: rect(71px, 9999px, 35px, 0); transform: skew(0.12deg); }
    50% { clip: rect(25px, 9999px, 33px, 0); transform: skew(0.74deg); }
    55% { clip: rect(83px, 9999px, 66px, 0); transform: skew(0.96deg); }
    60% { clip: rect(89px, 9999px, 54px, 0); transform: skew(0.23deg); }
    65% { clip: rect(54px, 9999px, 63px, 0); transform: skew(0.7deg); }
    70% { clip: rect(14px, 9999px, 2px, 0); transform: skew(0.7deg); }
    75% { clip: rect(86px, 9999px, 7px, 0); transform: skew(0.14deg); }
    80% { clip: rect(65px, 9999px, 25px, 0); transform: skew(0.26deg); }
    85% { clip: rect(96px, 9999px, 66px, 0); transform: skew(0.67deg); }
    90% { clip: rect(92px, 9999px, 5px, 0); transform: skew(0.09deg); }
    95% { clip: rect(80px, 9999px, 26px, 0); transform: skew(0.3deg); }
    100% { clip: rect(17px, 9999px, 72px, 0); transform: skew(0.66deg); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(76px, 9999px, 78px, 0); transform: skew(0.59deg); }
    5% { clip: rect(43px, 9999px, 22px, 0); transform: skew(0.22deg); }
    10% { clip: rect(20px, 9999px, 66px, 0); transform: skew(0.04deg); }
    15% { clip: rect(74px, 9999px, 26px, 0); transform: skew(0.44deg); }
    20% { clip: rect(29px, 9999px, 58px, 0); transform: skew(0.47deg); }
    25% { clip: rect(99px, 9999px, 90px, 0); transform: skew(0.13deg); }
    30% { clip: rect(75px, 9999px, 74px, 0); transform: skew(0.02deg); }
    35% { clip: rect(25px, 9999px, 32px, 0); transform: skew(0.89deg); }
    40% { clip: rect(96px, 9999px, 97px, 0); transform: skew(0.26deg); }
    45% { clip: rect(67px, 9999px, 43px, 0); transform: skew(0.91deg); }
    50% { clip: rect(25px, 9999px, 37px, 0); transform: skew(0.23deg); }
    55% { clip: rect(43px, 9999px, 91px, 0); transform: skew(0.03deg); }
    60% { clip: rect(27px, 9999px, 72px, 0); transform: skew(0.76deg); }
    65% { clip: rect(70px, 9999px, 5px, 0); transform: skew(0.17deg); }
    70% { clip: rect(43px, 9999px, 92px, 0); transform: skew(0.44deg); }
    75% { clip: rect(13px, 9999px, 38px, 0); transform: skew(0.07deg); }
    80% { clip: rect(82px, 9999px, 72px, 0); transform: skew(0.6deg); }
    85% { clip: rect(88px, 9999px, 69px, 0); transform: skew(0.41deg); }
    90% { clip: rect(53px, 9999px, 21px, 0); transform: skew(0.56deg); }
    95% { clip: rect(25px, 9999px, 13px, 0); transform: skew(0.31deg); }
    100% { clip: rect(86px, 9999px, 46px, 0); transform: skew(0.94deg); }
}

@keyframes glitch-skew {
    0% { transform: skew(-1deg); }
    10% { transform: skew(3deg); }
    20% { transform: skew(1deg); }
    30% { transform: skew(4deg); }
    40% { transform: skew(-3deg); }
    50% { transform: skew(5deg); }
    60% { transform: skew(-3deg); }
    70% { transform: skew(-1deg); }
    80% { transform: skew(2deg); }
    90% { transform: skew(5deg); }
    100% { transform: skew(-2deg); }
}

