/* Global Styles */
* {
    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-color: #f9f9f9;
}

/* Navigation Bar */
.navbar {
    background-color: #1a1a2e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #00d4ff;
}

.cta-nav {
    background-color: #00d4ff;
    color: #1a1a2e !important;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-nav:hover {
    background-color: #00a8cc;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6c6c91 0%, #16213e 100%);
    background-image:url(SOBER.jpg) ;
    color: rgb(255, 255, 255);
    padding: 120px 2rem;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    background-color: #00d4ff;
    color: #1a1a2e;
    padding: 15px 40px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #00a8cc;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Content Sections */
.content-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 3rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.preview-message {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.content-card {
    background: rgba(255, 255, 255, 0.534);
    border-radius: 10px;
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.content-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.content-card.playable {
    background: white;
    cursor: pointer;
    position: relative;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.content-card.playable::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card.playable:hover::before {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-flex;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00d4ff 0%, #00a8cc 100%);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card.playable:hover .play-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.4);
}

.timer {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #00d4ff;
    color: #1a1a2e;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 14;
}

/* Media Container and Player */
.media-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

/* Music album cover on music cards */
[data-type="music"] .media-container {
    background-image: url('Cover photo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Album cover for music tracks */
[data-type="music"] .media-container {
    background-image: url('Cover photo.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.media-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: transparent;
    object-fit: cover;
}

audio.media-player {
    position: relative;
    opacity: 1;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: none;
}

video.media-player {
    background: transparent;
    object-fit: cover;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 212, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-card.playable:hover .play-icon-overlay {
    background: rgba(0, 212, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.5);
}

.content-card.playable.playing .play-icon-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Control Buttons */
.controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 20px;
    z-index: 15;
}

.controls.hidden {
    display: none;
}

.control-btn {
    background: rgba(0, 212, 255, 0.9);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.control-btn:hover {
    background: rgba(0, 212, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.5);
}

.control-btn:active {
    transform: scale(0.95);
}

.stop-btn:hover {
    background: #f44336;
}

.fullscreen-btn:hover {
    background: #4caf50;
}

.content-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    margin-top: 0;
    color: #1a1a2e;
    line-height: 1.3;
    padding: 0 1rem;
}

.content-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.2;
    padding: 0 1rem 1rem 1rem;
}

/* Info overlay section at bottom */
.content-card > h3,
.content-card > p {
    position: static;
    padding: 0.5rem 0.8rem;
    background: none;
    z-index: 12;
    width: 100%;
    text-align: center;
    bottom: auto;
    left: auto;
}

.content-card > h3 {
    bottom: auto;
}

.content-card > p {
    bottom: 5px;
    padding-bottom: 0.8rem;
}

/* Hide custom overlay for both video and music, use native player controls */
.content-card .play-icon-overlay,
.content-card .controls {
    display: none !important;
}

/* Music Section */
.music-section {
    background-color: #080e1625;
}

/* Videos Section */
.videos-section {
    background-color: #e3e6e5ec;
}

/* Subscribe Section */
.subscribe-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.subscribe-container {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subscribe-section > div > p:nth-of-type(1) {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.email-input {
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.email-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

.submit-btn {
    background-color: #00d4ff;
    color: #1a1a2e;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #00a8cc;
    transform: translateY(-3px);
}

.form-message {
    font-size: 0.95rem;
    min-height: 1.5rem;
    margin-top: 1rem;
}

.form-message.success {
    color: #4caf50;
    font-weight: 600;
}

.form-message.error {
    color: #f44336;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: #0f0f1e;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: 60px 1rem;
        min-height: 400px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .subscribe-section h2 {
        font-size: 1.5rem;
    }

    .subscribe-section > div > p:nth-of-type(1) {
        font-size: 0.95rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Success Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-animate {
    animation: fadeIn 0.3s ease;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f0f0;
    border: none;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #e0e0e0;
}

.modal-content h2 {
    color: #1a1a2e;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.modal-content p:first-of-type {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Fullscreen Video Player Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    animation: fadeIn 0.3s ease;
}

.fullscreen-modal.hidden {
    display: none;
}

.fullscreen-player-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-video-player {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Subscribed Content Styling */
.content-card.subscribed {
    border: 2px solid #4caf50;
}

.content-card.subscribed .play-icon {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    font-size: 1.5rem;
}

/* Modal Form Styling */
#modal-subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

#modal-subscribe-form .email-input,
#modal-subscribe-form .submit-btn {
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#modal-subscribe-form .email-input {
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#modal-subscribe-form .email-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
}

#modal-subscribe-form .submit-btn {
    background-color: #00d4ff;
    color: #1a1a2e;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#modal-subscribe-form .submit-btn:hover {
    background-color: #00a8cc;
    transform: translateY(-2px);
}

/* Success Badge */
.success-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #4caf50;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 20;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}
