/* ============================================
   Hockey Summit of the Arts - Complete Stylesheet
   style_49.css
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

/* Header Container - Matches SportZone Style */
#hsota-header {
    background: #ED1C24; /* SportZone red */
    width: 100%;
    position: relative;
    z-index: 1000;
    min-height: 140px;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 140px;
}

/* Logo Section */
.header-logo {
    flex-shrink: 0;
    padding: 20px 0;
}

.header-logo img {
    height: 100px;
    width: auto;
}

.header-logo span {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
}

.header-logo a {
    color: #fff;
    text-decoration: none;
}

/* Navigation Menu */
#hsota-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-block;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Back to Main Site Button Style */
.nav-back {
    background: #fff;
    color: #ED1C24;
    border: 2px solid #fff;
}

.nav-back:hover {
    background: #f0f0f0;
    color: #ED1C24;
}

.nav-year {
    background: #28a745;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: normal;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' >>';
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    list-style: none;
    margin: 5px 0 0;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 4px;
    z-index: 1001;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background: #f0f0f0;
    color: #ED1C24;
}

.dropdown-menu .divider {
    height: 1px;
    background: #ddd;
    margin: 5px 0;
}

/* Status Bar (dark bar with date/user info) */
.statusBar {
    background: #2c2c2c;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
}

.statusBar a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

.statusBar a:hover {
    text-decoration: underline;
}

/* Main Content Area */
#content {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    min-height: 500px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container {
    width: 100%;
}

/* General Link Styles */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    color: #ED1C24;
    text-decoration: underline;
}

/* Content Area Links */
#content a {
    color: #0066cc;
    text-decoration: none;
}

#content a:hover {
    color: #ED1C24;
    text-decoration: underline;
}

/* Navigation Links in Tables */
a.NAV {
    color: #0066cc !important;
    font-size: 12px;
    font-weight: normal;
    text-decoration: none;
}

a.NAV:hover {
    color: #ED1C24 !important;
    text-decoration: underline;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

th, .TableHeader {
    background: #333;
    color: #fff !important;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    color: #333;
    font-size: 14px;
}

/* Table Row Alternating Colors */
tr:nth-child(even) {
    background: #f9f9f9;
}

tr.DataRow1 {
    background: #ffffff;
}

tr.DataRow2 {
    background: #f5f5f5;
}

tr.DataRow1:hover,
tr.DataRow2:hover {
    background: #e8f4ff;
}

.altRow1 { 
    background-color: #ffffff; 
}

.altRow2 { 
    background-color: #f0f0f0; 
}

/* Data Sub Headers (Division Headers in Tables) */
.DataSubHeader {
    background: #b8b8b8 !important;
    color: #000 !important;
    font-weight: bold;
    padding: 8px;
}

.DataSubHeader strong {
    color: #000 !important;
    font-size: 14px;
}

.DataSubHeader a.NAV,
.DataSubHeader a {
    color: #0066cc !important;
    text-decoration: none;
    font-weight: normal;
    font-size: 13px;
    margin-left: 10px;
}

.DataSubHeader a.NAV:hover,
.DataSubHeader a:hover {
    color: #ED1C24 !important;
    text-decoration: underline;
}

/* Section Headers (like "Summit 2025") */
.SectionHeader {
    background: #b8251a;
    color: #fff;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.SectionHeader a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

.SectionHeader a:hover {
    text-decoration: underline;
}

/* Schedule Name Header */
.ScheduleName {
    background: #ED1C24;
    color: #fff;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

/* Links in Table Headers */
.TableHeader a,
.DataHeader a {
    color: #fff !important;
}

/* Table Cell Alignment Classes */
.center { 
    text-align: center; 
}

.right { 
    text-align: right; 
}

.left { 
    text-align: left; 
}

/* Score Cells */
.score {
    font-weight: bold;
    text-align: center;
}

/* Team Name Cells */
.teamName {
    font-weight: bold;
}

/* Date/Time Cells */
.dateTime {
    white-space: nowrap;
}

/* Form Elements */
input, select, textarea {
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 14px;
    border-radius: 3px;
}

input[type="submit"], 
input[type="button"],
button {
    background: #ED1C24;
    color: #fff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background 0.3s;
}

input[type="submit"]:hover, 
input[type="button"]:hover,
button:hover {
    background: #b8251a;
}

/* Breadcrumb Navigation */
.breadcrumb {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb a {
    color: #0066cc;
    margin: 0 5px;
}

.breadcrumb a:hover {
    color: #ED1C24;
}

/* Footer */
#hsota-footer {
    background: #2c2c2c;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

#hsota-footer p {
    margin: 0;
    font-size: 14px;
}

#hsota-footer a {
    color: #fff;
    text-decoration: underline;
}

#hsota-footer a:hover {
    color: #ccc;
}

/* Error Messages */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Success Messages */
.success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Info Messages */
.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin: 10px 0;
}

/* Pagination */
.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background: #fff;
    color: #0066cc;
    text-decoration: none;
    border-radius: 3px;
}

.pagination a:hover {
    background: #ED1C24;
    color: #fff;
    border-color: #ED1C24;
}

.pagination .current {
    background: #ED1C24;
    color: #fff;
    border-color: #ED1C24;
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.lowercase {
    text-transform: lowercase;
}

.capitalize {
    text-transform: capitalize;
}

/* Hide/Show Classes */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dropdown-menu {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }
    
    .dropdown.active .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    #content {
        padding: 20px 10px;
    }
    
    table {
        font-size: 12px;
    }
    
    td, th {
        padding: 5px;
    }
    
    .header-logo img {
        height: 60px;
    }
    
    #hsota-header {
        min-height: auto;
    }
    
    .header-container {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    #hsota-header,
    #hsota-nav,
    #hsota-footer,
    .no-print {
        display: none;
    }
    
    #content {
        box-shadow: none;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
}

/* added for content */
/* Video and Embedded Content Styles */
video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Content area images */
#content img {
    max-width: 100%;
    height: auto;
}

/* Content area paragraphs */
#content p {
    margin: 10px 0;
    line-height: 1.6;
}

/* Content area horizontal rules */
#content hr {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}


/* added for movement css */
/* ============================================
   Sticky Header with Scroll Effect
   Updated with specific logo dimensions
   ============================================ */

/* Header Container */
#hsota-header {
    background: #ED1C24;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Normal state - full height */
.sticky-header {
    min-height: 180px; /* Adjusted for 160px logo + padding */
}

/* Scrolled state - compressed */
.sticky-header.scrolled {
    min-height: 80px; /* Adjusted for 60px logo + padding */
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-height: inherit;
    transition: all 0.3s ease;
}

/* Logo Section with Text */
.header-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header-logo img {
    width: 116px;
    height: 160px;
    transition: all 0.3s ease;
    object-fit: contain; /* Maintains aspect ratio */
}

.sticky-header.scrolled .header-logo img {
    width: 44px;
    height: 60px;
}

/* Header Title Text - FIXED SIZE */
.header-title {
    color: #fff;
    font-size: 20px; /* Fixed size - no change on scroll */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Navigation Menu */
#hsota-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0;
}

.nav-item {
    position: relative;
}

/* SportZone Style Navigation Links */
.nav-link {
    display: inline-block;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 16px; /* Fixed size - no change on scroll */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Hover effect - white background with black text */
.nav-link:hover {
    background: #fff;
    color: #000;
}

/* Active/Current page style */
.nav-item.active .nav-link,
.nav-link.active {
    background: #fff;
    color: #000;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' >>';
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 3px solid #ED1C24;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #ED1C24;
    color: #fff;
    padding-left: 25px;
}

/* Push content down to account for fixed header */
body {
    padding-top: 180px; /* Match normal header height */
    transition: padding-top 0.3s ease;
}

body.scrolled {
    padding-top: 80px; /* Match scrolled header height */
}

/* Status Bar (if you have login status) */
.statusBar {
    background: #2c2c2c;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
}

.statusBar a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
}

.statusBar a:hover {
    text-decoration: underline;
}

/* Main Content */
#content {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: #fff;
    min-height: 500px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Data Table Styles - Keeping these for your schedule tables */
.DataSubHeader {
    background: #b8b8b8 !important;
    color: #000 !important;
    font-weight: bold;
    padding: 8px;
}

.DataSubHeader strong {
    color: #000 !important;
    font-size: 14px;
}

.DataSubHeader a.NAV,
.DataSubHeader a {
    color: #0066cc !important;
    text-decoration: none;
    font-weight: normal;
    font-size: 13px;
    margin-left: 10px;
}

.DataSubHeader a.NAV:hover,
.DataSubHeader a:hover {
    color: #ED1C24 !important;
    text-decoration: underline;
}

/* Mobile Responsive Updates */
@media (max-width: 992px) {
    .sticky-header {
        min-height: 140px;
    }
    
    .sticky-header.scrolled {
        min-height: 70px;
    }
    
    .header-logo img {
        width: 87px;
        height: 120px;
    }
    
    .sticky-header.scrolled .header-logo img {
        width: 44px;
        height: 60px;
    }
    
    .header-title {
        font-size: 18px;
    }
    
    .header-logo {
        gap: 15px;
    }
    
    .nav-link {
        padding: 12px 18px;
    }
    
    body {
        padding-top: 140px;
    }
    
    body.scrolled {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .header-title {
        display: none; /* Hide title text on mobile to save space */
    }
    
    .header-logo img {
        width: 58px;
        height: 80px;
    }
    
    .sticky-header.scrolled .header-logo img {
        width: 44px;
        height: 60px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 14px; /* Keep font size consistent */
    }
    
    body {
        padding-top: 120px;
    }
    
    .dropdown-menu {
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }
    
    .dropdown.active .dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Hide text completely on very small screens */
@media (max-width: 480px) {
    .header-title {
        display: none;
    }
    
    .sticky-header {
        min-height: 100px;
    }
    
    .sticky-header.scrolled {
        min-height: 60px;
    }
    
    .header-logo img {
        width: 44px;
        height: 60px;
    }
    
    .nav-menu {
        gap: 0;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    body {
        padding-top: 100px;
    }
    
    body.scrolled {
        padding-top: 60px;
    }
}

/* Table and General Styles (keeping from before) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}

th, .TableHeader {
    background: #333;
    color: #fff !important;
    padding: 10px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    color: #333;
    font-size: 14px;
}

/* Footer */
#hsota-footer {
    background: #2c2c2c;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

#hsota-footer p {
    margin: 0;
    font-size: 14px;
}

/* Black section below header (like SportZone NEWS page) */
.page-title-section {
    background: #000;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: -60px; /* Pull up behind logo */
    padding-top: 100px; /* Push content down */
}

.page-title-section h1 {
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}
