/* iOS-Style Event Modal Styles */

.ios-modal-content {
    max-width: 800px; /* More iPhone-like proportion on desktop */
    width: 100%;
    height: 90vh; /* Takes up most of screen height */
    max-height: 850px;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    position: relative;
}

/* Close Button Floating */
.ios-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.ios-modal-close:hover {
    background: rgba(0,0,0,0.7);
}

/* Actions top right (Edit, etc) */
.ios-modal-actions-top {
    position: absolute;
    top: 15px;
    right: 55px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.ios-modal-actions-top button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

/* Hero Header */
.ios-event-hero {
    position: relative;
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #111, #333); /* Default fallback */
    overflow: hidden;
}

.ios-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

.ios-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.ios-hero-sport-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.ios-hero-tags {
    display: flex;
    gap: 6px;
}

.ios-hero-tag {
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    backdrop-filter: blur(4px);
}

.ios-hero-score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 10px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.ios-hero-team {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 10px;
}

.ios-hero-score-text {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 10px;
}

.ios-hero-vs {
    font-size: 1rem;
    opacity: 0.6;
    margin: 0 10px;
}

.ios-hero-event-name {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
    margin-top: 5px;
}

/* Tab Picker */
.ios-tab-picker-container {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    z-index: 10;
}

.ios-tab-picker {
    display: flex;
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 4px;
    gap: 4px;
}

.ios-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 0;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ios-tab-btn.active {
    background: var(--accent-primary); /* Auburn orange #E05C2B typical */
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Tab Body */
.ios-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: var(--bg-primary);
    position: relative;
}

.ios-tab-content {
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Styles */
.ios-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.ios-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ios-section-icon {
    color: var(--accent-primary);
}

/* Gameday Placeholder */
.ios-gameday-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.ios-gameday-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.ios-gameday-placeholder h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Memories & Ratings specifics inside iOS modal */
.ios-tab-content textarea {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
}

.ios-btn-full {
    width: 100%;
    padding: 14px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Additional iOS Event Modal Styles */

/* Logos in Hero */
.ios-hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.ios-hero-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* Hero Details (Date & Venue) */
.ios-hero-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.ios-hero-detail-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Star Rating */
.ios-star-rating {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.ios-star {
    cursor: pointer;
    color: rgba(255,255,255,0.2);
    transition: color 0.2s, transform 0.1s;
}

.ios-star:hover {
    transform: scale(1.1);
}

.ios-star.filled {
    color: #FFD700;
}

/* Photo Gallery */
.ios-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.ios-photo-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
}

.ios-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ios-photo-add-btn {
    aspect-ratio: 1;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
}

.ios-photo-add-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.ios-photo-shared-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: var(--accent-primary);
    border-radius: 50%;
    padding: 4px;
    display: flex;
}

#ios-event-modal .modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
