/* ========================================
   VOYEURGRANNY.COM - ELECTRIC BLUE
   Modern High-Tech Design
======================================== */

/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #00a8ff;
    --accent-color: #4dd0e1;
    --bg-dark: #0a0e27;
    --bg-darker: #000000;
    --bg-card: #141b2d;
    --bg-card-hover: #1e2a44;
    --text-white: #ffffff;
    --text-light: #e5e5e5;
    --text-gray: #999999;
    --text-muted: #666666;
    --border-color: #1e3a5f;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-card);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===== TOP NETWORK BAR ===== */
.top-bar {
    background-color: var(--bg-darker);
    border-bottom: 1px solid var(--border-color);
    padding: 2px 0;
}

.network-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
}

.network-label {
    color: var(--text-gray);
    font-weight: 600;
}

.network-links a {
    color: var(--text-light);
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.network-links a:hover {
    color: var(--primary-color);
    background: var(--bg-card);
}

/* ===== HEADER ===== */
.header {
    background-color: var(--bg-darker);
    padding: 4px 0;
    border-bottom: 1px solid #1e3a5f;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo a {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -1px;
}

.logo .highlight {
    color: var(--primary-color);
}

.logo a:hover .highlight {
    color: var(--secondary-color);
}

/* ===== NAVIGATION ===== */
.nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
}

.nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    padding: 6px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

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

.nav a.active {
    color: var(--primary-color);
    font-weight: 700;
}

.nav a.active::after {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.nav a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== SEARCH BOX ===== */
.search-box form {
    display: flex;
    background: var(--bg-card);
    border-radius: 25px;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.search-box input {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-white);
    font-size: 14px;
    min-width: 200px;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

.search-box button {
    padding: 8px 16px;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background: var(--secondary-color);
}

.search-box button:active {
    transform: scale(0.95);
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin: 10px 0 10px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 15px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.12),
        0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 14px 28px rgba(0, 212, 255, 0.25),
        0 10px 10px rgba(0, 212, 255, 0.22);
    border-color: var(--primary-color);
}

.category-card:active {
    transform: translateY(-4px) scale(0.98);
}

.category-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    overflow: hidden;
}

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

.category-card:hover .category-thumb img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.95), rgba(0, 168, 255, 0.95));
    color: var(--text-white);
    padding: 8px 14px;
    border-radius: 8px 0 0 0;
    font-size: 13px;
    font-weight: 700;
}

.category-title {
    padding: 12px 15px;
    text-align: center;
    background: var(--bg-darker);
}

.category-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: capitalize;
}

/* ===== VIDEOS SECTION ===== */
.videos-section {
    padding: 15px 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 1px 3px rgba(0,0,0,0.12),
        0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 14px 28px rgba(0, 212, 255, 0.25),
        0 10px 10px rgba(0, 212, 255, 0.22);
    border-color: var(--primary-color);
}

.video-card:active {
    transform: translateY(-4px) scale(0.98);
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    overflow: hidden;
}

.video-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-card:hover .video-thumb::before {
    opacity: 1;
}

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

.video-card:hover .video-thumb img {
    transform: scale(1.08);
}

.duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
}

.hd-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: var(--bg-darker);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== VIDEO PAGE LAYOUT ===== */
.video-page {
    padding: 20px 0;
}

.video-player-wrapper {
    margin-bottom: 20px;
}

.video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-details {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.video-details h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.3;
}

.video-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 15px;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.about-video {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.about-video h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-video p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ===== VIDEO TAGS ===== */
.video-tags {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.video-tags h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-dark);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-tag:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.video-tag:active {
    transform: scale(0.95);
}

.video-tag:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.related-videos-section {
    margin-top: 30px;
}

.comments-section {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

.comments-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
}

.comments-placeholder {
    padding: 20px;
    text-align: center;
    background: var(--bg-dark);
    border-radius: 6px;
    margin-top: 15px;
}

.comments-info {
    color: var(--text-gray);
    font-size: 15px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-block;
    padding: 10px 16px;
    background: var(--bg-card);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--bg-darker);
    border-color: var(--primary-color);
}

.page-link.active:hover {
    transform: none;
}

.page-link:active {
    transform: scale(0.95);
}

.page-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== SEO SECTION ===== */
.seo-section {
    padding: 25px 0;
    background: var(--bg-card);
    margin: 25px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.seo-section .container {
    max-width: 1000px;
}

.seo-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.seo-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin: 30px 0 15px;
}

.seo-section p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== A-Z CATEGORIES ===== */
.az-section {
    padding: 15px 0;
}

.az-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.az-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: var(--bg-card);
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.az-item:hover {
    background: var(--bg-card-hover);
    color: var(--primary-color);
    transform: translateX(5px);
}

.az-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.az-item .count {
    color: var(--text-muted);
    font-size: 13px;
}

.az-item:hover .count {
    color: var(--accent-color);
}

/* ===== RECENT SEARCHES ===== */
.recent-searches {
    padding: 15px 0;
}

.tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-pill {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-light);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: var(--primary-color);
    color: var(--bg-darker);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.tag-pill:active {
    transform: scale(0.95);
}

.tag-pill:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-darker);
    padding: 40px 0 30px;
    margin-top: 30px;
    border-top: 2px solid var(--primary-color);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
}

/* ===== RESPONSIVE - 1280px+ ===== */
@media (min-width: 1280px) {
    .categories-grid,
    .videos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .az-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
    .categories-grid,
    .videos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .az-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        width: 100%;
        min-width: 0;
    }

    .network-links {
        font-size: 10px;
        gap: 5px;
    }

    .section-title {
        font-size: 24px;
        margin: 12px 0 12px;
    }

    .categories-grid,
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .az-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pagination {
        gap: 8px;
        margin: 25px 0 15px;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    .video-details h1 {
        font-size: 22px;
    }

    .video-stats {
        font-size: 14px;
        gap: 12px;
    }

    .seo-section {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .seo-section h2 {
        font-size: 26px;
    }

    .seo-section h3 {
        font-size: 20px;
    }

    .tags-grid {
        gap: 10px;
    }

    .tag-pill {
        padding: 8px 16px;
        font-size: 13px;
    }

    .video-tag {
        padding: 6px 12px;
        font-size: 12px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 480px) {
    .logo a {
        font-size: 26px;
    }

    .nav ul {
        font-size: 14px;
        gap: 12px;
    }

    .network-links {
        font-size: 10px;
        gap: 5px;
    }

    .section-title {
        font-size: 20px;
        margin: 10px 0 10px;
    }

    .categories-grid,
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .az-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pagination {
        gap: 6px;
        margin: 20px 0 12px;
    }

    .page-link {
        padding: 7px 10px;
        font-size: 13px;
    }

    .video-info h3,
    .category-title h3 {
        font-size: 14px;
    }

    .duration {
        bottom: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 11px;
    }

    .hd-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        font-size: 10px;
    }

    .video-details {
        padding: 15px;
    }

    .video-details h1 {
        font-size: 18px;
    }

    .stat-item {
        padding: 5px 10px;
        font-size: 13px;
    }

    .about-video {
        padding: 15px;
    }

    .about-video h2 {
        font-size: 18px;
    }

    .video-tags h3 {
        font-size: 16px;
    }

    .comments-section {
        padding: 20px 15px;
    }

    .comments-section h2 {
        font-size: 20px;
    }

    .seo-section h2 {
        font-size: 22px;
    }

    .seo-section h3 {
        font-size: 18px;
    }

    .footer-links {
        gap: 20px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== SELECTION ===== */
::selection {
    background: var(--primary-color);
    color: var(--bg-darker);
}

/* ===== END OF CSS ===== */