/* Modern, premium styles for SPIKES Landing Page - Adapted for minimal landing page */

:root {
  /* Color Palette from original styles.css */
  --primary-bg: #0a0a0a; /* Black background */
  --secondary-bg: #121212;
  --accent-color: #c0c0c0; /* Silver */
  --accent-color-hover: #d8d8d8;
  --iridium: linear-gradient(135deg, #8a8d93, #b4b8c0, #8a8d93); /* Iridium silver gradient for buttons */
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem; 
  --spacing-lg: 2rem; 

  /* Borders */
  --border-radius-sm: 4px;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: var(--secondary-bg);
    padding: var(--spacing-sm) 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#logo {
    max-height: 50px; 
}

/* Video Section */
#video-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

#hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 75vh; /* Default max height for desktop */
}

/* Custom Video Controls - Toggles at top right */
#video-custom-controls {
    position: absolute;
    top: 10px; 
    right: 10px; 
    z-index: 2147483647;
    display: flex;
    gap: 8px; 
}

.video-control-toggle {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.6rem; 
    cursor: pointer;
    padding: 8px; 
    transition: color 0.3s ease;
}

.video-control-toggle:hover {
    color: var(--accent-color-hover);
}

/* Join Section */
#join-section {
    padding: var(--spacing-md) var(--spacing-sm); 
    text-align: center;
    background-color: var(--primary-bg);
}

#join-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem; 
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

#join-section p {
    font-size: 1rem; 
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    max-width: 90%; 
    margin-left: auto;
    margin-right: auto;
}

#form-buttons {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: var(--spacing-sm);
}

#form-buttons button {
    background: var(--iridium);
    color: var(--primary-bg);
    border: none;
    padding: 14px 25px; 
    width: 85%; 
    max-width: 320px; 
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem; 
    text-transform: uppercase;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.2);
}

#form-buttons button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85); 
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--secondary-bg);
    margin: var(--spacing-sm); 
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px; 
    border-radius: var(--border-radius-sm);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px; 
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px; 
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-primary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem; 
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.modal p {
    font-size: 0.9rem; 
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-label {
    display: block;
    margin-bottom: 6px; 
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control,
.form-select {
    width: 100%;
    padding: 10px; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    box-sizing: border-box;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 70px;
}

.form-check {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: flex-start; 
}

.form-check-input {
    margin-right: 8px;
    margin-top: 4px; 
    width: auto;
    accent-color: var(--accent-color);
}

.form-check-label {
    font-weight: normal;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-submit {
    background: var(--iridium);
    color: var(--primary-bg);
    padding: 12px 20px;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.2);
    width: 100%; 
}

.form-submit:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Responsive Design - Mobile specific adjustments */
@media (max-width: 768px) {
    #video-section {
        min-height: 55vh; /* Ensure video section takes more than half the height */
    }
    #hero-video {
        max-height: 100%; /* Allow video to fill the video-section height */
        height: 55vh; /* Explicitly set height for mobile */
        object-fit: cover;
    }
    #join-section {
        padding-top: var(--spacing-md); /* Keep some padding but rely on video height */
    }
    #join-section h2 {
        font-size: 1.8rem; 
    }
    #form-buttons button {
        padding: 12px 20px;
        font-size: 0.9rem; 
        width: 90%; 
    }
    .modal-content {
        width: 95%;
        padding: var(--spacing-sm);
    }
    .modal-title {
        font-size: 1.4rem;
    }
    .video-control-toggle {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    #logo {
        max-height: 45px; 
    }
    #video-section {
        min-height: 60vh; /* Even more prominence for video on small mobiles */
    }
    #hero-video {
        height: 60vh; /* Explicitly set height for small mobile */
    }
    .video-control-toggle {
        font-size: 1.4rem; 
        top: 8px;
        right: 8px;
    }
    #join-section h2 {
        font-size: 1.6rem;
    }
    #join-section p {
        font-size: 0.9rem;
    }
     #form-buttons button {
        font-size: 0.85rem; 
    }
}

/* Responsive Design - Tablet and larger mobiles (adjustments from previous general mobile) */
@media (min-width: 600px) and (max-width: 768px) { 
    #video-section {
        min-height: 50vh; /* Adjust for tablet if needed, or keep consistent with mobile */
    }
    #hero-video {
        height: 50vh; /* Adjust for tablet */
    }
    #form-buttons {
        flex-direction: row; 
        justify-content: center;
    }
    #form-buttons button {
        width: auto; 
        padding: 14px 25px; 
        font-size: 1rem;
    }
    #join-section h2 {
        font-size: 2rem;
    }
    #join-section p {
        font-size: 1rem;
        max-width: 85%;
    }
    .modal-title {
        font-size: 1.5rem;
    }
     .modal p {
        font-size: 0.95rem;
    }
    .form-label, .form-control, .form-select {
        font-size: 0.95rem;
    }
    .form-check-label {
        font-size: 0.9rem;
    }
}

/* Responsive Design - Desktop */
@media (min-width: 769px) {
    #logo {
        max-height: 60px;
    }
    #video-section {
        min-height: auto; /* Reset min-height for desktop */
    }
    #hero-video {
        max-height: 75vh; /* Default desktop height */
        height: auto; /* Reset height for desktop to allow natural aspect ratio */
    }
    .video-control-toggle {
        font-size: 1.8rem;
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    #join-section h2 {
        font-size: 2.5rem;
    }
    #join-section p {
        font-size: 1.1rem;
        max-width: 700px;
    }
    #form-buttons {
        flex-direction: row; 
        justify-content: center;
    }
    #form-buttons button {
        width: auto; 
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    .modal-content {
        padding: var(--spacing-lg); 
        max-width: 600px;
    }
    .modal-title {
        font-size: 1.8rem;
    }
}

