/* Kids Jungle - Advanced CSS Styles */

/* CSS Variables for easy theming */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Fredoka One', cursive;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Channel Banner Styles */
.channel-banner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.channel-logo {
    flex-shrink: 0;
}

.logo-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.channel-info {
    flex: 1;
}

.channel-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.channel-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.95;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Viral Tags Styles */
.viral-tags {
    margin-bottom: 25px;
}

.keywords-section,
.hashtags-section {
    margin-bottom: 20px;
}

.keywords-section h3,
.hashtags-section h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-weight: bold;
}

.viral-keyword {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: white;
    padding: 6px 12px;
    margin: 3px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.viral-keyword:hover {
    background: linear-gradient(135deg, var(--accent-color), #ff6b9d);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hashtag {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #ff6b9d);
    color: white;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hashtag:hover {
    background: linear-gradient(135deg, #ff6b9d, var(--accent-color));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Social Media & Sharing Styles */
.social-sharing {
    margin-top: 20px;
}

.social-sharing h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-weight: bold;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon i {
    font-size: 1rem;
}

.social-icon span {
    font-size: 0.8rem;
}

/* Social Media Platform Colors */
.social-icon.facebook {
    background: #1877f2;
    color: white;
}

.social-icon.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.social-icon.twitter {
    background: #1da1f2;
    color: white;
}

.social-icon.twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.4);
}

.social-icon.youtube {
    background: #ff0000;
    color: white;
}

.social-icon.youtube:hover {
    background: #e60000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.social-icon.facebook-share {
    background: #4267b2;
    color: white;
}

.social-icon.facebook-share:hover {
    background: #365899;
    transform: translateY(-2px);
}

.social-icon.twitter-share {
    background: #1da1f2;
    color: white;
}

.social-icon.twitter-share:hover {
    background: #1a91da;
    transform: translateY(-2px);
}

.social-icon.whatsapp {
    background: #25d366;
    color: white;
}

.social-icon.whatsapp:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.social-icon.telegram {
    background: #0088cc;
    color: white;
}

.social-icon.telegram:hover {
    background: #0077b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.social-icon.pinterest {
    background: #bd081c;
    color: white;
}

.social-icon.pinterest:hover {
    background: #a50719;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(189, 8, 28, 0.4);
}

.social-icon.linkedin {
    background: #0077b5;
    color: white;
}

.social-icon.linkedin:hover {
    background: #006699;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.social-icon.reddit {
    background: #ff4500;
    color: white;
}

.social-icon.reddit:hover {
    background: #e63e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.social-icon.copy-link {
    background: #6c757d;
    color: white;
}

.social-icon.copy-link:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.share-divider {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 10px 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo i {
    color: var(--accent-color);
    margin-right: 10px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.last-updated {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Archive CTA */
.archive-cta {
    padding: 30px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Search Section */
.search-section {
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

#search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
    outline: none;
}

#search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: var(--transition);
}

#search-btn:hover {
    background: var(--secondary-color);
}

/* Video Gallery */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.video-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    transition: var(--transition);
    opacity: 0;
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hashtag {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.hashtag:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-1px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.page-btn {
    padding: 12px 20px;
    border: none;
    background: white;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.page-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--primary-color);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-numbers {
    display: flex;
    gap: 10px;
}

.page-info {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: white;
    border-radius: var(--border-radius);
    margin: 40px 0;
    box-shadow: var(--shadow);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Keywords Section */
.keywords-section {
    padding: 40px 0;
    text-align: center;
}

.keywords-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.keyword-tag {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.keyword-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section h3 i {
    margin-right: 10px;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #ccc;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        gap: 15px;
    }

    .main-nav a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .video-container {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .keywords-cloud {
        gap: 10px;
    }

    .keyword-tag {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .video-card {
        margin-bottom: 20px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Smooth animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Mobile Responsive Styles for Channel Banner */
@media (max-width: 768px) {
    .channel-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }

    .logo-img {
        width: 80px;
        height: 80px;
    }

    .channel-title {
        font-size: 1.8rem;
    }

    .channel-description {
        font-size: 1rem;
        padding: 12px;
    }

    .viral-keyword,
    .hashtag {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin: 2px;
    }

    .social-icons {
        justify-content: center;
        gap: 8px;
    }

    .social-icon {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .social-icon span {
        display: none;
    }

    .social-icon i {
        font-size: 1.1rem;
    }

    .share-divider {
        font-size: 0.8rem;
        margin: 8px 0;
        padding: 6px;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .pagination,
    .search-section {
        display: none;
    }

    .video-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}
