/* ============================================
   FILENAME: connect-styles.css
   PURPOSE: Styling for Connect & Live Streaming Page
   DESCRIPTION: Social media feeds, live player, follow buttons
   ============================================ */

/* ============================================
   BASE STYLES FOR CONNECT PAGE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   CONNECT HERO SECTION
   ============================================ */
.connect-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connect-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.connect-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* ============================================
   LIVE STREAM SECTION
   ============================================ */
.live-section {
    padding: 4rem 2rem;
    background: white;
}

.live-section h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.live-player {
    max-width: 1000px;
    margin: 0 auto 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #000;
    aspect-ratio: 16/9;
}

.live-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.live-status {
    text-align: center;
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    border-left: 4px solid #1e3a8a;
}

.live-status.is-live {
    background: #fef3c7;
    border-left-color: #ef4444;
    animation: pulseBorder 2s ease-in-out infinite;
}

@keyframes pulseBorder {
    0%, 100% {
        border-left-color: #ef4444;
    }
    50% {
        border-left-color: #fbbf24;
    }
}

.live-status p {
    margin: 0;
    font-weight: 600;
    color: #1e3a8a;
}

.live-status.is-live p {
    color: #ef4444;
}

/* ============================================
   LATEST VIDEOS SECTION
   ============================================ */
.videos-section {
    padding: 4rem 2rem;
    background: #f9fafb;
}

.videos-section h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ef4444;
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #666;
    grid-column: 1 / -1;
}

/* ============================================
   SOCIAL FEEDS SECTION
   ============================================ */
.social-section {
    padding: 4rem 2rem;
    background: white;
}

.social-section h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.social-feeds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.social-feed-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #1e3a8a;
}

.social-feed-card h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #1e3a8a;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-feed-card h3 svg {
    flex-shrink: 0;
}

.instagram-feed-placeholder,
.tiktok-videos {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.instagram-feed-placeholder p,
.tiktok-videos p {
    color: #666;
    line-height: 1.6;
}

/* ============================================
   FOLLOW BUTTONS SECTION
   ============================================ */
.follow-section {
    padding: 4rem 2rem;
    background: #f9fafb;
    text-align: center;
}

.follow-section h2 {
    color: #1e3a8a;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.follow-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.follow-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.follow-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.follow-btn svg {
    flex-shrink: 0;
}

.follow-btn.youtube {
    background: #ff0000;
    color: white;
}

.follow-btn.youtube:hover {
    background: #cc0000;
}

.follow-btn.facebook {
    background: #1877f2;
    color: white;
}

.follow-btn.facebook:hover {
    background: #0d65d9;
}

.follow-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.follow-btn.instagram:hover {
    opacity: 0.9;
}

.follow-btn.tiktok {
    background: #000000;
    color: white;
}

.follow-btn.tiktok:hover {
    background: #333333;
}

/* ============================================
   FOOTER SOCIAL ICONS
   ============================================ */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-social {
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .connect-hero h1 {
        font-size: 2rem;
    }

    .connect-hero p {
        font-size: 1.1rem;
    }

    .live-player {
        height: auto;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .social-feeds-grid {
        grid-template-columns: 1fr;
    }

    .follow-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .follow-btn {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        justify-content: center;
    }

    .social-section h2,
    .videos-section h2,
    .follow-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .connect-hero h1 {
        font-size: 1.6rem;
    }

    .connect-hero p {
        font-size: 1rem;
    }

    .live-section,
    .videos-section,
    .social-section,
    .follow-section {
        padding: 3rem 1rem;
    }

    .social-feed-card {
        padding: 1.5rem;
    }

    .follow-btn {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* ============================================
   FOOTER STYLES FOR CONNECT PAGE
   ============================================ */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Footer social icons (same as homepage) */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-social {
    margin-bottom: 2rem;
}

.footer-social p {
    color: white;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icons a:nth-child(1):hover {
    background: #ff0000;
    color: white;
}

.social-icons a:nth-child(2):hover {
    background: #1877f2;
    color: white;
}

.social-icons a:nth-child(3):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-icons a:nth-child(4):hover {
    background: #000000;
    color: white;
}

.social-icons svg {
    width: 28px;
    height: 28px;
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal:hover {
    transform: scale(1.2);
}