html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* QuinielHero Custom Styles */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-brand {
    font-weight: bold;
}

/* Ensure navbar items display properly */
.navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

/* Ensure proper navbar layout */
.navbar-collapse {
    display: flex !important;
    flex-basis: auto;
}

.navbar-nav.me-auto {
    margin-right: auto !important;
}

.card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.alert {
    border-radius: 6px;
    border: none;
}

/* Custom utility classes */
.text-primary {
    color: #0d6efd !important;
}

.bg-primary {
    background-color: #0d6efd !important;
}

/* Team name text wrapping */
.team-name {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    max-width: 100% !important;
}

/* More specific team name wrapping for picks views */
.card-body .team-name,
.match-card .team-name,
.picks .team-name {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
}

/* Force text wrapping for all team names in flex containers */
.d-flex .team-name,
.flex-fill .team-name,
.text-center .team-name {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    display: block !important;
}

/* Ultra-specific team name wrapping for picks cards */
.card-body .d-flex .text-center .team-name,
.match-card .card-body .d-flex .text-center .team-name,
.col-12 .col-md-6 .col-lg-4 .card .card-body .d-flex .text-center .team-name {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Ensure navbar collapses properly on mobile */
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
}

/* PWA specific styles */
@media (display-mode: standalone) {
    body {
        background-color: #007bff;
    }
    
    .navbar {
        background-color: #007bff !important;
    }
}

/* Table styles */
.table {
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

/* Form styles */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Button group styles */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Additional Bootstrap overrides for better consistency */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
}

.badge {
    font-size: 0.75em;
    font-weight: 500;
}

.btn-group-sm > .btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
}

/* Ensure proper spacing for fee management pages */
.container.mt-4 {
    margin-top: 1.5rem !important;
}

.row.mb-4 {
    margin-bottom: 1.5rem !important;
}

.card.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Install button styles */
#install-app .btn {
    background-color: transparent;
    border-color: white;
    color: white;
}

#install-app .btn:hover {
    background-color: white;
    color: #007bff;
}

/* Social Sharing Styles */
.share-quiniela-btn {
    transition: all 0.3s ease;
}

.share-quiniela-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#shareModal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

#shareModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

#shareModal .modal-title {
    font-weight: 600;
}

#shareModal .form-control[readonly] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

#shareModal .input-group .btn {
    border-left: none;
}

#shareModal .input-group .form-control {
    border-right: none;
}

#shareModal .btn-group .btn {
    border-radius: 6px;
    margin: 0 2px;
}

#shareModal .d-grid .btn {
    border-radius: 8px;
    padding: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#shareModal .d-grid .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#shareModal .btn-primary {
    background: linear-gradient(135deg, #1877f2 0%, #0d6efd 100%);
    border: none;
}

#shareModal .btn-dark {
    background: linear-gradient(135deg, #1da1f2 0%, #0d1117 100%);
    border: none;
}

#shareModal .btn-danger {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 100%);
    border: none;
}

/* Copy button feedback */
#shareModal .btn-outline-secondary:active {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Responsive adjustments for sharing modal */
@media (max-width: 576px) {
    #shareModal .modal-dialog {
        margin: 10px;
    }
    
    #shareModal .d-grid .btn {
        padding: 10px;
        font-size: 0.9rem;
    }
} 