/* Tourno5.css - Dashboard-style design for tournament pages */

/* Dashboard Container */
.tourno5-dashboard {
    background: #f5f6fa;
    min-height: 100vh;
}

/* Dashboard Header */
.tourno5-header {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.tourno5-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.tourno5-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.95) 100%);
    z-index: 2;
}

.tourno5-header-content {
    position: relative;
    z-index: 3;
    color: white;
    width: 100%;
}

.tourno5-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    color: #fff;
}

.tourno5-date {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ecf0f1;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.tourno5-description {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #bdc3c7;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    max-width: 600px;
}

/* Registration Section */
.tourno5-registration-section {
    background: transparent;
    padding: 2rem 0;
}

.tourno5-registration {
    text-align: center;
    margin-top: 2rem;
}

/* Header Stats Section */
.tourno5-header-stats-section {
    background: transparent;
    padding: 2rem 0;
}

.tourno5-header-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tourno5-header-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.tourno5-header-stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tourno5-header-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Dashboard Stats */
.tourno5-stats {
    padding: 2rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-bottom: 1px solid #e9ecef;
}

.tourno5-stat-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.tourno5-stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.tourno5-stat-icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tourno5-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tourno5-stat-label {
    font-size: 0.9rem;
    color: #ecf0f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Dashboard Content */
.tourno5-content {
    padding: 2rem 0;
}

/* Widgets */
.tourno5-widget {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Desktop: Make teams widget same height as competitions widget */
@media (min-width: 992px) {
    .tourno5-content .row:first-child {
        display: flex;
        flex-direction: row-reverse; /* Reverse order to put teams on right */
    }
    
    .tourno5-teams-widget {
        display: flex;
        flex-direction: column;
    }
    
    .tourno5-teams-widget .tourno5-widget-header {
        flex-shrink: 0; /* Don't shrink the header */
    }
    
    .tourno5-teams-widget .tourno5-widget-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0;
        min-height: 0; /* Allow flex item to shrink */
        overflow: hidden; /* Prevent content from overflowing */
    }
    
    .tourno5-teams-list {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
        min-height: 0; /* Allow flex item to shrink */
    }
}

.tourno5-widget:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tourno5-widget-hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tourno5-widget-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tourno5-widget-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.tourno5-widget-header i {
    margin-right: 0.5rem;
}

.tourno5-widget-content {
    padding: 1.5rem;
}

/* Competitions */
.tourno5-single-competition {
    text-align: center;
    padding: 2rem;
}

.tourno5-competitions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tourno5-competition-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.tourno5-competition-item:hover {
    background: #e9ecef;
    border-color: #3498db;
    transform: translateX(5px);
}

.tourno5-competition-info {
    flex: 1;
}

.tourno5-competition-info h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.tourno5-competition-date {
    color: #6c757d;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tourno5-competition-date i {
    margin-right: 0.3rem;
    color: #3498db;
}

.tourno5-competition-teams {
    font-size: 1rem;
    color: #495057;
    line-height: 1.4;
}

.tourno5-competition-teams img {
    width: 25px !important;
    height: auto;
    margin-right: 0.3rem;
    vertical-align: middle;
}

.tourno5-competition-action {
    color: #3498db;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.tourno5-competition-item:hover .tourno5-competition-action {
    transform: translateX(5px);
}

.tourno5-game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Teams */
.tourno5-teams-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
}

/* Mobile/Tablet: Add max-height restriction */
@media (max-width: 991px) {
    .tourno5-teams-list {
        max-height: 400px;
    }
}

/* Mobile: Ensure teams widget takes full width */
@media (max-width: 768px) {
    .tourno5-content .row:first-child {
        flex-direction: column; /* Stack vertically on mobile */
    }
    
    .tourno5-content .row:first-child > div {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
    }
}

/* Mobile: Ensure all widgets take full width */
@media (max-width: 768px) {
    .tourno5-content .row > div {
        width: 100% !important; /* Force full width for all columns */
        max-width: 100% !important;
    }
}


.tourno5-team-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tourno5-team-item:hover {
    background: #e9ecef;
    border-color: #3498db;
    transform: translateX(3px);
}

.tourno5-team-logo {
    flex-shrink: 0;
}

.tourno5-team-info h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.2rem;
}

.tourno5-team-info p {
    font-size: 1.3rem;
    color: #6c757d;
    margin: 0;
}

/* Information */
.tourno5-info-content {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #495057;
}

/* Contact */
.tourno5-contact-info h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.tourno5-contact-info h4 i {
    color: #3498db;
    margin-right: 0.5rem;
}

.tourno5-contact-list,
.tourno5-address-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.tourno5-contact-list li,
.tourno5-address-list li {
    padding: 0.5rem 0;
    font-size: 1.3rem;
    color: #495057;
    border-bottom: 1px solid #f1f3f4;
}

.tourno5-contact-list li:last-child,
.tourno5-address-list li:last-child {
    border-bottom: none;
}

.tourno5-contact-list li i {
    width: 15px;
    color: #3498db;
    margin-right: 0.5rem;
}

.tourno5-contact-list li a {
    color: #3498db;
    text-decoration: none;
}

.tourno5-contact-list li a:hover {
    text-decoration: underline;
}

.tourno5-map-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tourno5-map {
    width: 100%;
    height: 200px;
}

/* Buttons */
.tourno5-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
}

.tourno5-btn-primary {
    background: #3498db;
    color: #fff;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.tourno5-btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    color: #fff;
    text-decoration: none;
}

.tourno5-btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Alerts */
.tourno5-alert {
    display: block;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

.tourno5-alert-danger {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tourno5-header {
        min-height: 300px;
    }
    
    .tourno5-title {
        font-size: 2.8rem;
    }
    
    .tourno5-date {
        font-size: 1.4rem;
    }
    
    .tourno5-description {
        font-size: 1.3rem;
    }
    
    .tourno5-stats {
        padding: 1.5rem 0;
    }
    
    .tourno5-stat-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .tourno5-stat-number {
        font-size: 2rem;
    }
    
    .tourno5-widget-header {
        padding: 1rem;
    }
    
    .tourno5-widget-header h3 {
        font-size: 1.5rem;
    }
    
    .tourno5-widget-content {
        padding: 1rem;
    }
    
    .tourno5-competition-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tourno5-competition-info h4 {
        font-size: 1.2rem;
    }
    
    .tourno5-competition-date {
        font-size: 1.3rem;
    }
    
    .tourno5-competition-teams {
        font-size: 0.9rem;
    }
    
    .tourno5-competition-action {
        align-self: flex-end;
        font-size: 1.2rem;
    }
    
    .tourno5-team-item {
        padding: 0.8rem;
    }
    
    .tourno5-team-info h5 {
        font-size: 1.5rem;
    }
    
    .tourno5-team-info p {
        font-size: 1.3rem;
    }
    
    .tourno5-map {
        height: 250px;
    }
    
    .tourno5-header-stats-section {
        padding: 1.5rem 0;
    }
    
    .tourno5-header-stats {
        padding: 0 1rem;
    }
    
    .tourno5-registration-section {
        padding: 1.5rem 0;
    }
    
    .tourno5-header-stat-label {
        font-size: 1rem;
    }
    
    .tourno5-header-stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .tourno5-header {
        min-height: 250px;
    }
    
    .tourno5-title {
        font-size: 2.2rem;
    }
    
    .tourno5-date {
        font-size: 1.4rem;
    }
    
    .tourno5-description {
        font-size: 1.3rem;
    }
    
    .tourno5-stats {
        padding: 1rem 0;
    }
    
    .tourno5-stat-card {
        padding: 0.8rem;
    }
    
    .tourno5-stat-number {
        font-size: 1.8rem;
    }
    
    .tourno5-widget-header {
        padding: 0.8rem;
    }
    
    .tourno5-widget-content {
        padding: 0.8rem;
    }
    
    .tourno5-competition-item {
        padding: 0.8rem;
    }
    
    .tourno5-competition-info h4 {
        font-size: 1.5rem;
    }
    
    .tourno5-competition-date {
        font-size: 1.3rem;
    }
    
    .tourno5-competition-teams {
        font-size: 0.8rem;
    }
    
    .tourno5-competition-action {
        font-size: 1.1rem;
    }
    
    .tourno5-team-item {
        padding: 0.6rem;
    }
    
    .tourno5-team-info h5 {
        font-size: 1.5rem;
    }
    
    .tourno5-team-info p {
        font-size: 1.3rem;
    }
    
    .tourno5-map {
        height: 200px;
    }
    
    .tourno5-btn {
        font-size: 1.5rem;
    }
    
    .tourno5-btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .tourno5-header-stats-section {
        padding: 1rem 0;
    }
    
    .tourno5-header-stats {
        padding: 0 0.5rem;
    }
    
    .tourno5-registration-section {
        padding: 1rem 0;
    }
    
    .tourno5-header-stat-label {
        font-size: 1.1rem;
    }
    
    .tourno5-header-stat-number {
        font-size: 1.5rem;
    }
}
