:root {
    --purple-dark: #6A0DAD;
    --purple-mid: #8A2BE2;
    --purple-light: #A45EE5;
    --pink-accent: #FF6B9E;
    --neon-blue: #00F5FF;
    --dark: #0F0F1A;
    --light: #F8F8FF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

header {
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
  height: 40px;   /* Adjust based on your navbar height */
  width: auto;    /* Keeps aspect ratio */
  display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
}

.nav-links li {
    margin-left: 1.8rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--purple-light), var(--pink-accent));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--purple-mid), var(--pink-accent));
    color: white;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 13, 173, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--purple-light);
    color: var(--purple-light);
    box-shadow: none;
}

.category-header {
    padding: 8rem 0 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 5px;
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106,13,173,0.1) 0%, rgba(15,15,26,0) 50%);
    z-index: -1;
}

.category-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--purple-light), var(--pink-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.category-description {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
}

.subcategory-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.subcategory-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    background: rgba(138, 43, 226, 0.1);
    color: var(--purple-light);
    border: 1px solid rgba(138, 43, 226, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.subcategory-btn.active, .subcategory-btn:hover {
    background: linear-gradient(45deg, var(--purple-mid), var(--pink-accent));
    color: white;
}

.clips-section {
    padding: 2rem 0 4rem;
    padding-top: 0;
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.clip-card {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 259px;
    max-height: 259px;
}

.clip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(106, 13, 173, 0.3);
    border-color: rgba(138, 43, 226, 0.3);
}

.clip-thumbnail {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.clip-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.clip-meta {
  display: flex;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  align-items: baseline;
  gap: 5px;
  justify-content: space-between;
}

.clip-card:hover .clip-thumbnail img {
    transform: scale(1.1);
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.clip-info {
    padding: 1.2rem;
}

.clip-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clip-author {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clip-stats {
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.clip-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.5rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.download-btn {
    background: linear-gradient(45deg, var(--purple-mid), var(--pink-accent));
    color: white;
}

.download-btn:hover {
    transform: translateY(-2px);
}

.earn-btn {
    background: rgba(255,255,255,0.1);
    color: var(--light);
}

.earn-btn:hover {
    background: rgba(255,255,255,0.2);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    color: var(--light);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn.active, .page-btn:hover {
    background: linear-gradient(45deg, var(--purple-mid), var(--pink-accent));
    color: white;
}

footer {
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    background: linear-gradient(to right, var(--purple-light), var(--pink-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--purple-light);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(45deg, var(--purple-mid), var(--pink-accent));
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.desktop-only {
    display: flex;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--purple-light);
  color: var(--purple-light);
  box-shadow: none;
}

.btn-outline:hover {
  background: linear-gradient(45deg, var(--purple-mid), var(--pink-accent));
  color: white;
  border-color: transparent;
}

.loginBtn {
    margin-left: 30px;
}

.hamburger {
    display: none;
}

.mobile-menu {
    display: none;
}

@media (max-width: 768px) {
    .category-header {
        padding: 6rem 0 2rem;
        padding-bottom: 5px;
    }
    
    .category-title {
        font-size: 2.2rem;
        margin-top: 30px
    }
    
    .nav-links {
        display: none;
    }
    
    .subcategory-nav {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }
    
    .subcategory-nav::-webkit-scrollbar {
        display: none;
    }
    
    .subcategory-btn {
        white-space: nowrap;
    }
    
    .clips-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .desktop-only {
        display: none;
    }

    .loginBtn {
        margin-left: 0;
    }

    /* Base hamburger container */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 30px;
        height: 22px;
        cursor: pointer;
        gap: 6px;
        z-index: 1001;
        transition: transform 0.3s ease-in-out;
        -webkit-tap-highlight-color: transparent;
    }

    /* Each bar */
    .hamburger span {
        display: block;
        width: 100%;
        height: 2.5px;
        background-color: var(--light); /* Replace with your color if needed */
        border-radius: 2px;
        transition: all 0.4s ease-in-out;
        transform-origin: center;
    }

    /* Transform to "X" */
    .hamburger.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .mobile-menu {
        position: absolute;
        top: -600px; /* hide it initially */
        left: 0;
        width: 100%;
        z-index: 99;
        transition: top 0.4s ease;
        padding: 1.5rem 1.5rem 2rem;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu.active {
        top: 50%;
        width: 100%;
    }

    .mobile-links {
        list-style: none;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background: black;
        padding: 20px;
        border-radius: 30px;
    }

    .mobile-links a {
        color: var(--light);
        font-size: 1rem;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s;
    }

    .mobile-links a:hover {
        color: var(--pink-accent);
    }

    .mobile-links .btn {
        width: 100%;
        text-align: center;
    }
}

.subcategory-dropdown {
  display: none;
  margin-top: 1rem;
  text-align: center;
}

.subcategory-dropdown select {
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  background: rgba(138, 43, 226, 0.1);
  color: var(--purple-light);
  border: 1px solid rgba(138, 43, 226, 0.3);
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23A45EE5" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  cursor: pointer;
  width: 100%;
}

/* Mobile responsive toggle */
@media (max-width: 768px) {
  .subcategory-nav {
    display: none;
  }

  .subcategory-dropdown {
    display: block;
  }
}

.aspect-nav {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  justify-content: center;
}

.aspect-btn {
  background: transparent;
  border: 1px solid rgba(138, 43, 226, 0.3);
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
}

/* Ratio Badge */
.ratio-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* Visual indicators */
.ratio-badge::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
}

.ratio-badge.vertical::before {
  width: 6px;
  height: 10px;
}

.ratio-badge.square::before {
  width: 10px;
  height: 10px;
}

.ratio-badge.horizontal {
  background: var(--pink-accent);
}

.ratio-badge.vertical {
  background: var(--purple-light);
}

.ratio-badge.square {
  background: var(--green-accent, #28a745); /* fallback green if no var */
}