/* ========================================
   OMW 2025 - Main Tournament Styles
   Import all modular CSS files
   ======================================== */

@import url('./omw2025/shared.css');
@import url('./omw2025/hero.css');
@import url('./omw2025/tournament-details.css');
@import url('./omw2025/sponsors.css');

/* TODO: Create and import these files next:
@import url('./omw2025/sticky-nav.css');

@import url('./omw2025/rules.css');
*/


/* Sticky Navigation */
.sticky-tournament-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(45, 181, 165, 0.2);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sticky-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 70px;
}

.sticky-nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--omw-primary);
}

.sticky-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.sticky-nav-link {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--omw-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.sticky-nav-link:hover {
    background: var(--omw-primary);
    color: white;
    transform: translateY(-2px);
}

.sticky-nav-link.active {
    background: var(--omw-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

/* NEW: Disabled sticky nav links */
.sticky-nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999 !important;
}

.sticky-nav-link.disabled:hover {
    background: none !important;
    transform: none !important;
}

.language-button-active {
    background-color: var(--omw-accent) !important;
    border-color: var(--omw-accent) !important;
    color: white !important;
}

.language-button-inactive {
    background-color: transparent !important;
    border-color: var(--omw-accent) !important;
    color: var(--omw-accent) !important;
}

/* Responsive sticky nav */
@media (max-width: 768px) {
    .sticky-nav-container {
        padding: 0 1rem;
    }
    
    .sticky-nav-menu {
        gap: 0.25rem;
    }
    
    .sticky-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .sticky-nav-brand {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .sticky-nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sticky-nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.5rem 1rem;
    }
    
    .sticky-nav-brand {
        margin-bottom: 0.5rem;
    }
}

/* Adjust body padding when sticky nav is visible */
body.sticky-nav-visible {
    padding-top: 70px;
}

/* Sponsors Section */
/* .sponsors-section {
    padding: 3rem 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 20px;
    margin: 2rem 0;
}

.sponsors-section .section-title {
    color: var(--omw-primary);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.sponsors-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--omw-primary), var(--omw-accent));
    border-radius: 2px;
}

.sponsor-tier {
    margin-bottom: 3rem;
}

.tier-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    color: var(--omw-dark);
}

/* .sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
} */

/* Sponsor Cards 
.sponsor-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    min-width: 33%;
    max-width: 33%;
    overflow: hidden;
}

.sponsor-card:hover {
    transform: translateY(-5px);
}

/* Gold Tier Styling 
.sponsor-card.gold {
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
    border: 2px solid #ffd700;
}

.sponsor-card.gold:hover {
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5);
    transform: translateY(-8px);
}

.sponsor-card.gold .p-card-body {
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

/* Silver Tier Styling 
.sponsor-card.silver {
    box-shadow: 0 6px 25px rgba(192, 192, 192, 0.3);
    border: 2px solid #c0c0c0;
}

.sponsor-card.silver:hover {
    box-shadow: 0 12px 35px rgba(192, 192, 192, 0.4);
}

/* Bronze Tier Styling 
.sponsor-card.bronze {
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.2);
    border: 1px solid #cd7f32;
}

.sponsor-card.bronze:hover {
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.3);
}

/* Sponsor Logo Container 
.sponsor-logo-container {
    text-align: center;
    padding: 1rem;
}

.sponsor-logo {
    transition: all 0.3s ease;
    border-radius: 8px;
}

/* Logo Sizes by Tier 
.sponsor-logo-container.gold .sponsor-logo {
    max-width: 200px;
    max-height: 100px;
}

.sponsor-logo-container.silver .sponsor-logo {
    max-width: 150px;
    max-height: 75px;
}

.sponsor-logo-container.bronze .sponsor-logo {
    max-width: 120px;
    max-height: 60px;
}

.sponsor-info {
    margin-top: 1rem;
}

.sponsor-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--omw-dark);
    margin: 0.5rem 0;
}

.sponsor-description {
    font-size: 0.9rem;
    color: var(--omw-primary);
    margin: 0;
    font-weight: 500;
}

/* Sponsor Links 
.sponsor-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.sponsor-link.disabled {
    cursor: default;
}

.sponsor-link:not(.disabled):hover .sponsor-logo {
    transform: scale(1.05);
}

/* Call to Action 
.sponsors-cta {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    margin: 0 2rem;
    text-align: center;
}

.sponsors-cta p {
    font-size: 1.1rem;
    margin: 0;
}

 Responsive sponsors 
@media (max-width: 768px) {
     .sponsors-grid {
        gap: 1rem;
    } 
    
    .sponsor-logo-container.gold .sponsor-logo {
        max-width: 150px;
    }
    
    .sponsor-logo-container.silver .sponsor-logo {
        max-width: 120px;
    }
    
    .sponsor-logo-container.bronze .sponsor-logo {
        max-width: 100px;
    }
    
    .sponsors-section {
        margin: 1rem 0;
        padding: 2rem 1rem;
    }
} */

/* Rules Section */
.rules-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.rules-header {
    margin-bottom: 2rem;
    text-align: center;
}

.rules-header .section-title {
    color: var(--omw-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.rules-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--omw-primary), var(--omw-accent));
    border-radius: 2px;
}

/* Style the language toggle buttons */
.language-toggle {
    margin-bottom: 1.5rem;
}

.language-toggle .p-button {
    border-radius: 20px;
    margin: 0 0.25rem;
}

/* Style the search bar */
.rules-search {
    max-width: 500px;
    margin: 0 auto 1.5rem auto;
}

/* Search results info */
.search-results-info {
    text-align: center;
    margin-bottom: 1rem;
}

.search-results-info small {
    color: #666;
    font-style: italic;
}

/* Schedule Table - JavaScript-enhanced version */
.schedule-wrapper {
    position: relative;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

.schedule-header-fixed {
    position: relative;
    z-index: 10;
    background: var(--omw-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.schedule-header-fixed .schedule-table {
    margin: 0;
}

.schedule-header-fixed th {
    background: var(--omw-primary);
    color: white;
    padding: 1rem 0.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    white-space: nowrap;
}

.schedule-table-container {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    transition: box-shadow 0.2s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.schedule-table-container::-webkit-scrollbar {
    display: none;
}

.schedule-table-container.scrolling {
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

.schedule-table.header-only {
    border-collapse: collapse;
}

.schedule-table td {
    padding: 0.75rem 0.5rem;
    border: none;
    border-bottom: 1px solid #eee;
    background: white;
    font-size: 0.9rem;
    white-space: nowrap;
    vertical-align: middle;
}

.schedule-table tbody tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.schedule-table tbody tr:hover td {
    background: #f8f9fa !important;
    transform: translateX(2px);
}

.schedule-table .desperado-round td {
    background: linear-gradient(135deg, var(--omw-dark), #364553) !important;
    color: white;
    font-weight: 600;
}

.schedule-table .desperado-round:hover td {
    background: linear-gradient(135deg, #364553, var(--omw-dark)) !important;
    transform: translateX(4px);
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
}

.schedule-table tbody tr:nth-child(even) td {
    background: #fafafa;
}

.schedule-table tbody tr:nth-child(even):hover td {
    background: #f0f0f0 !important;
}

/* Column widths */
.schedule-header-fixed th:nth-child(1),
.schedule-table td:nth-child(1) {
    width: 8%;
    text-align: center;
}

.schedule-header-fixed th:nth-child(2),
.schedule-table td:nth-child(2) {
    width: 18%;
}

.schedule-header-fixed th:nth-child(3),
.schedule-table td:nth-child(3) {
    width: 18%;
}

.schedule-header-fixed th:nth-child(4),
.schedule-table td:nth-child(4) {
    width: 15%;
    text-align: center;
}

.schedule-header-fixed th:nth-child(5),
.schedule-table td:nth-child(5) {
    width: 15%;
    text-align: center;
}

.schedule-header-fixed th:nth-child(6),
.schedule-table td:nth-child(6) {
    width: 26%;
    text-align: right;
    font-weight: 600;
    color: var(--omw-primary);
}

/* Mobile schedule responsive */
@media (max-width: 768px) {
    .schedule-table-container {
        max-height: 300px;
    }
    
    .schedule-header-fixed th,
    .schedule-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .schedule-header-fixed th {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .schedule-table-container {
        max-height: 250px;
    }
    
    .schedule-header-fixed th,
    .schedule-table td {
        padding: 0.4rem 0.15rem;
        font-size: 0.75rem;
    }
}

/* Subsection Cards */
.subsection-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subsection-card {
    border-left: 4px solid var(--omw-primary);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.subsection-card:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.subsection-card .p-card-body {
    padding: 1.5rem;
}

.subsection-title {
    color: var(--omw-primary);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
}

.subsection-content {
    line-height: 1.6;
}

.subsection-content h3.section-header {
    color: var(--omw-primary);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.1rem;
}

.subsection-content h4.subsection-header {
    color: var(--omw-dark);
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
}

.subsection-content p {
    margin: 0.75rem 0;
    color: #333;
}

.subsection-content p:first-child {
    margin-top: 0;
}

.subsection-content p:last-child {
    margin-bottom: 0;
}

.subsection-content ul.rules-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.subsection-content ul.rules-list li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.subsection-content strong {
    color: var(--omw-primary);
    font-weight: 600;
}

.subsection-content .content-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.subsection-content .content-table td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: left;
}

.subsection-content .content-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.subsection-card .subsection-title + .subsection-content {
    margin-top: 0;
}

.subsection-card .subsection-content:first-child {
    margin-top: 0;
}

/* Prize table cards */
.table-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table-card h5.subsection-header {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--omw-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.prize-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.prize-table th {
    background: var(--omw-primary);
    color: white;
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-weight: 600;
    border: none;
}

.prize-table td {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.prize-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.prize-table tr:hover {
    background-color: #f5f5f5;
}

/* Search highlighting */
@keyframes highlightPulse {
    0% {
        background: var(--omw-accent);
        transform: scale(1);
    }
    50% {
        background: #f39c12;
        transform: scale(1.02);
    }
    100% {
        background: var(--omw-accent);
        transform: scale(1);
    }
}

.search-highlight {
    background: linear-gradient(120deg, var(--omw-accent) 0%, #f39c12 100%);
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    animation: highlightPulse 0.5s ease-in;
}

.prize-table .search-highlight,
.schedule-table .search-highlight {
    background: linear-gradient(120deg, var(--omw-accent) 0%, #f39c12 100%);
    color: white;
    padding: 0.1rem 0.2rem;
    border-radius: 2px;
    font-weight: 600;
}

.subsection-card {
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
   }
   to {
       opacity: 1;
       transform: translateY(0);
   }
}

/* Mobile responsive for subsections */
@media (max-width: 768px) {
   .subsection-card .p-card-body {
       padding: 1rem;
   }
   
   .subsection-title {
       font-size: 1.1rem;
   }
}

/* Home Page OMW Banner Link */
.omw-banner-link {
   margin-bottom: 2rem;
   border-radius: 15px;
   overflow: hidden;
   box-shadow: 0 4px 15px rgba(0,0,0,0.1);
   transition: all 0.3s ease;
}

.omw-banner-link:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.banner-link-wrapper {
   display: block;
   text-decoration: none;
   color: inherit;
   background: linear-gradient(135deg, var(--omw-primary) 0%, var(--omw-dark) 100%);
   padding: 2rem;
   text-align: center;
   transition: all 0.3s ease;
}

.banner-link-wrapper:hover {
   background: linear-gradient(135deg, var(--omw-dark) 0%, var(--omw-primary) 100%);
   color: inherit;
   text-decoration: none;
}

.banner-content {
   color: white;
}

.banner-title {
   font-size: 2.5rem;
   margin: 0 0 1rem 0;
   color: var(--omw-accent);
   text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
   font-weight: bold;
}

.home-tournament-banner {
   max-width: 300px;
   height: auto;
   filter: drop-shadow(0 4px 15px rgba(0,0,0,0.3));
   margin: 1rem 0;
   transition: transform 0.3s ease;
}

.banner-link-wrapper:hover .home-tournament-banner {
   transform: scale(1.05);
}

.banner-subtitle {
   font-size: 1.1rem;
   margin: 1rem 0 0 0;
   color: white;
   font-weight: 300;
   opacity: 0.9;
}

/* Responsive banner */
@media (max-width: 768px) {
   .banner-title {
       font-size: 2rem;
   }
   
   .home-tournament-banner {
       max-width: 200px;
   }
   
   .banner-link-wrapper {
       padding: 1.5rem;
   }
   
   .banner-subtitle {
       font-size: 1rem;
   }
}

@media (max-width: 480px) {
   .banner-title {
       font-size: 1.5rem;
   }
   
   .home-tournament-banner {
       max-width: 150px;
   }
   
   .banner-link-wrapper {
       padding: 1rem;
   }
}