/* IVP Colorado Mobile Mockup Styling */
:root {
    --primary-color: #0c6a74;      /* Deep Beach Teal */
    --secondary-color: #e67d45;    /* Sunset Orange */
    --accent-color: #e2f3f5;       /* Shallow Water Cyan */
    --bg-light: #fbfbf8;           /* Sun-bleached Sand White */
    --text-dark: #1b2a2c;          /* Deep Slate Gray */
    --text-muted: #5e7376;         /* Soft Ocean Haze */
    --white: #ffffff;
    --border-color: #e4ecee;
    
    --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 8px 24px rgba(12, 106, 116, 0.06);
    --shadow-lg: 0 12px 32px rgba(12, 106, 116, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: #f6f8f8;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Mobile Wrapper */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    position: relative;
}

/* Header */
.app-header {
    background-color: var(--white);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container img {
    height: 48px;
    width: auto;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Navigation Screen Drawer (Simple toggle) */
.nav-menu {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean app feel */
}
.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-item {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    white-space: nowrap;
    background-color: #f0f4f5;
    transition: var(--transition);
}

.nav-item.active {
    color: var(--white);
    background-color: var(--primary-color);
}

/* Main Content Views */
.view-screen {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.view-screen.d-none {
    display: none !important;
}

/* Typography */
h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
}

h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.text-lead {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Cards & Sections */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Hero Section (Home) */
.hero-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #157e8a 100%);
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
}

.hero-card h1 {
    color: var(--white);
    font-size: 26px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.hero-card p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.hero-decor {
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,125,69,0.3) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
}

/* Selector Dropdowns */
.select-container {
    margin-bottom: 16px;
}

.select-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.custom-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    box-shadow: var(--shadow);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c6a74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    transition: var(--transition);
}

.custom-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 106, 116, 0.1);
}

/* Tabs */
.tabs-container {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
    padding: 4px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px 8px;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    text-align: center;
}

.tab-btn.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Match Cards */
.match-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.match-tag {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 4px;
}

.match-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-name {
    font-size: 15px;
    font-weight: 500;
}

.team-name.highlight {
    font-weight: 800;
    color: var(--primary-color);
}

.team-score {
    font-size: 16px;
    font-weight: 700;
}

.match-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
}

/* Standings Table */
.standings-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.standings-table th, 
.standings-table td {
    padding: 12px 14px;
}

.standings-table th {
    background-color: #f0f4f5;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.standings-table tr {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--white);
}

.standings-table tr:last-child {
    border-bottom: none;
}

.standings-table tr.highlight {
    background-color: #fffaf5;
}

.standings-table tr.highlight td {
    font-weight: 700;
    color: var(--primary-color);
}

/* Score Submission Form */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 12px rgba(230, 125, 69, 0.2);
    transition: var(--transition);
}

.btn:hover {
    background-color: #d86832;
    box-shadow: 0 6px 16px rgba(230, 125, 69, 0.3);
}

.btn-secondary {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(12, 106, 116, 0.2);
}

.btn-secondary:hover {
    background-color: #09525a;
    box-shadow: 0 6px 16px rgba(12, 106, 116, 0.3);
}

/* Banner / Promo Items */
.location-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    padding: 12px;
    border: 1px solid var(--border-color);
}

.location-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: var(--accent-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.location-info h4 {
    font-size: 15px;
    font-weight: 700;
}

.location-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Alerts and badges */
.badge-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-open {
    background-color: #e6f6ee;
    color: #1e8751;
}

.badge-full {
    background-color: #fff0f0;
    color: #e53e3e;
}

/* Week Accordion styles */
details.week-accordion {
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

details.week-accordion[open] {
    box-shadow: var(--shadow-lg);
}

details.week-accordion summary {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    background-color: var(--white);
    transition: var(--transition);
}

details.week-accordion summary::-webkit-details-marker {
    display: none; /* Hide default arrow in Safari */
}

details.week-accordion[open] summary {
    border-bottom: 1px solid var(--border-color);
    background-color: #fafcfc;
}

.week-title {
    font-family: var(--font-family);
    font-weight: 700;
}

.accordion-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: 12px;
}

.accordion-icon {
    font-size: 16px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

details.week-accordion[open] .accordion-icon {
    transform: rotate(180deg);
}

.week-matches {
    padding: 12px 14px;
    background-color: #fcfdfd;
}

.week-matches .match-card:last-child {
    margin-bottom: 0 !important;
}
