:root {
    --primary-color: #0056b3;
    --accent-color: #ff4757;
    --text-white: #ffffff;
    --text-gray: #e0e0e0;
    --bg-light: #f4f7f6;
    --card-bg: #ffffff;
    --transition-speed: 0.4s;
}

/* --- Header --- */
.shv-header {
    background: #fff;
    padding: 2rem 5%;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.shv-header h1 { font-size: 2.5rem; color: #333; margin-bottom: 0.5rem; }
.shv-header p { color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Video Player Popup (Updated) --- */
#video-player-section {
    display: none; /* Hidden by default */
    position: fixed; /* Makes it overlay the screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Dark backdrop */
    z-index: 9999; /* Sit on top of everything */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px; /* Space around edges */
}

#video-player-section.active {
    display: flex;
    opacity: 1;
}

/* Container that controls the specific size of the video */
#iframe-container {
    position: relative;
    width: 100%;
    max-width: 700px; /* <--- CHANGE THIS NUMBER to resize (e.g. 600 or 800) */
    aspect-ratio: 16 / 9; /* Forces 16:9 shape */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-radius: 8px;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
}

/* Pop animation when active */
#video-player-section.active #iframe-container {
    transform: scale(1);
}

#video-player-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-player {
    position: absolute;
    top: -40px; /* Moves X above the video box */
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10001;
    background: transparent;
}

.close-player:hover {
    color: var(--accent-color);
}

/* --- Grid & Cards --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    padding: 50px 100px;
}

.video-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    position: relative;
}

.video-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }

.thumbnail-container {
    position: relative; width: 100%; padding-bottom: 56.25%; overflow: hidden; background: #222;
}

.thumbnail-container img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}

.video-card:hover .thumbnail-container img { transform: scale(1.1); }

/* Text Content Hidden/Slide Logic */
.card-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 25px 20px; z-index: 2;
    transform: translateY(100%); opacity: 0;
    background: rgb(10 10 10 / 40%) !important;
    color: var(--text-white);
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-card:hover .card-content { transform: translateY(0); opacity: 1; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 5px; line-height: 1.3; color: White; }
.card-meta { font-size: 0.85rem; color: var(--text-gray); display: flex; align-items: center; gap: 10px; }

/* Icons */
.play-icon-overlay {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 70px; height: 70px;
    background: rgba(255, 255, 255, 0.9); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3; box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.play-icon-overlay svg { width: 28px; height: 28px; fill: var(--primary-color); margin-left: 4px; }
.video-card:hover .play-icon-overlay { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.share-icon {
    position: absolute; top: 15px; right: 15px;
    width: 40px; height: 40px;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transform: translateY(-20px);
    transition: all 0.3s ease; z-index: 4; color: #fff; border: 1px solid rgba(255,255,255,0.2);
}

.share-icon:hover { background: var(--primary-color); border-color: var(--primary-color); }
.video-card:hover .share-icon { opacity: 1; transform: translateY(0); }

/* --- Toast Notification --- */
.toast {
    position: fixed; bottom: 30px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333; color: #fff; padding: 12px 24px;
    border-radius: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0; transition: all 0.4s ease; z-index: 10000;
    font-size: 0.9rem; display: flex; align-items: center; gap: 10px;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Media Queries --- */
@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; padding: 50px 40px; }
}

/* --- Social Modal Styles --- */
.social-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-modal.show {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.social-modal.show .modal-content {
    transform: translateY(0);
}

.close-player {
    position: fixed; /* Fixes it to the top right of the screen, not the video */
    top: 60px;
    right: 500px;
    background: #ffffff; /* White background makes it easy to see */
    color: #000000;    /* Black X for contrast */
    border: none;
    width: 50px;        /* Big enough to click easily */
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001; /* Ensure it sits on top of the video */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Shadow to make it pop */
    transition: all 0.2s;
}

.close-player:hover {
    transform: scale(1.1); /* Gets slightly bigger on hover */
    background: var(--accent-color); /* Changes to red on hover */
    color: #fff;
}


/* --- Mobile Phone Fix --- */
@media (max-width: 768px) {
    .close-player {
        position: absolute; /* Stays inside the video popup on mobile */
        top: 20px;         /* Position inside the padding */
        right: 20px;
    }
}
.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, opacity 0.2s;
    border: none;
    cursor: pointer;
}

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* --- Social Brand Colors --- */
.sh-facebook { background-color: #1877F2; }
.sh-linkedin { background-color: #0077b5; }
.sh-instagram {
    background: #d62976; 
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}
.sh-tiktok { background-color: #000000; }

.copy-link-section {
    display: flex;
    gap: 5px;
    margin-top: 15px;
}

.copy-link-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.8rem;
    color: #666;
}

.copy-link-section button {
    padding: 8px 15px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}
.copy-link-section button:hover { background: #004494; }