/* Apple-inspired Dark Mode Theme for RateTheTransfer.com */

/* Base Styles */
:root {
    --dark-bg: #000000;
    --card-bg: #1c1c1e;
    --input-bg: #2c2c2e;
    --text-primary: #ffffff;
    --text-secondary: #8e8e93;
    --border-color: #38383a;
    --success-color: #34c759;
    --success-hover: #2fb750;
    --flop-color: #ff3b30;
    --flop-hover: #e0352b;
    --primary-color: #0a84ff;
    --primary-hover: #007aff;
    --progress-color: #0a84ff;
    --divider-color: rgba(255, 255, 255, 0.1);
}

/* Space Grotesk is now loaded from the HTML head */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header and Logo */
.header-divider {
    height: 1px;
    background-color: var(--divider-color);
    width: 100%;
    margin: 0 auto;
}

.site-logo {
    max-height: 45px;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .site-logo {
        max-height: 35px;
    }
}

/* Typography */
.site-title {
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

h3.card-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--divider-color);
    padding-bottom: 0.75rem;
}

h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.display-4 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-weight: 400;
    letter-spacing: -0.2px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.text-light-muted {
    color: var(--text-secondary);
}

/* Cards */
.dark-card {
    background-color: var(--card-bg);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Forms */
.dark-input {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 8px;
}

.dark-input:focus {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.3);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover, .btn-success:focus {
    background-color: var(--success-hover);
    border-color: var(--success-hover);
}

.btn-danger {
    background-color: var(--flop-color);
    border-color: var(--flop-color);
}

.btn-danger:hover, .btn-danger:focus {
    background-color: var(--flop-hover);
    border-color: var(--flop-hover);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.btn-outline-light {
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Progress */
.progress-container {
    margin: 20px 0;
}

.progress {
    background-color: var(--input-bg);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--progress-color);
    transition: width 0.3s ease;
}

.progress-text, .progress-percentage {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Transfer Card Styles */
.transfer-card-container {
    padding: 20px;
}

.transfer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.transfer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.season {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.transfer-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .transfer-body {
        grid-template-columns: auto 1fr 1fr auto;
        align-items: center;
    }
}

.player-image-container {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .player-image-container {
        margin: 0;
    }
}

.player-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    text-align: center;
}

@media (min-width: 768px) {
    .player-info {
        text-align: left;
    }
}

.player-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.player-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.nationality {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    justify-content: center;
}

@media (min-width: 768px) {
    .nationality {
        justify-content: flex-start;
    }
}

.nationality-flag {
    width: 16px;
    height: 12px;
    object-fit: contain;
}

.transfer-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
    gap: 10px;
}

.club-from, .club-to {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.club-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.club-logo-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.club-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
    border-radius: 3px;
}

.club-name {
    font-size: 0.9rem;
    text-align: center;
}

.transfer-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.transfer-fee {
    text-align: center;
}

@media (min-width: 768px) {
    .transfer-fee {
        text-align: right;
    }
}

.fee-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.fee-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.rating-buttons {
    margin-top: 30px;
}

.btn-active-press {
    transform: scale(0.95);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.keyboard-shortcut {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0 3px;
    font-family: monospace;
}

/* Completion Page Styles */
.completion-card {
    margin-top: 50px;
}

.completion-icon {
    font-size: 4rem;
    color: var(--success-color);
}

.completion-stats {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Animation for card transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* About Section Styles */
.author-bio {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .author-bio {
        flex-direction: row;
        align-items: flex-start;
    }
}

.bio-image-container {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 60px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .bio-image-container {
        margin: 0;
        flex-shrink: 0;
    }
}

.bio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-content {
    flex: 1;
}

.bio-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.bio-text {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* List Styles */
ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    position: relative;
}

ul {
    list-style: none;
}

ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
    margin-right: 0.5em;
}

ol {
    counter-reset: item;
    list-style: none;
}

ol li {
    counter-increment: item;
    position: relative;
}

ol li:before {
    content: counter(item) ".";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Hero Section Styles */
.hero-section {
    background-color: var(--dark-bg);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff 0%, #b3b3b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    margin-top: 2rem;
}

.btn-get-started {
    padding: 15px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(10, 132, 255, 0.3);
    background-color: #0a84ff;
    border-color: #0a84ff;
}

.btn-get-started:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(10, 132, 255, 0.4);
    background-color: #007aff;
    border-color: #007aff;
}

/* Player Images Gallery */
.player-gallery {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.blurred-player {
    width: 175px;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    opacity: 0;
    filter: blur(5px);
}

.blurred-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blurred-player:nth-child(1) {
    animation: fadeSlideIn 0.8s ease-out 0.2s forwards;
    transform: translateY(20px) scale(0.9);
}

.blurred-player:nth-child(2) {
    animation: fadeSlideIn 0.8s ease-out 0.5s forwards;
    transform: translateY(20px) scale(0.9);
}

.blurred-player:nth-child(3) {
    animation: fadeSlideIn 0.8s ease-out 0.8s forwards;
    transform: translateY(20px) scale(0.9);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        filter: blur(15px);
    }
    to {
        opacity: 1;
        transform: translate(0) scale(1);
        filter: blur(5px);
    }
}

.player-gallery::after {
    content: "?";
    position: absolute;
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 40px;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .player-gallery {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .blurred-player {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 50px 0 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .player-gallery {
        gap: 10px;
    }
    
    .blurred-player {
        width: 100px;
        height: 100px;
    }
}

/* Instructions Modal Styles */
.modal-content.dark-card {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: none;
    border-radius: 16px;
}

.modal-header {
    border-color: var(--divider-color);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
}

.instruction-item {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--divider-color);
}

.instruction-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.instruction-icon {
    flex: 0 0 50px;
    height: 50px;
    background: rgba(10, 132, 255, 0.15);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
}

.instruction-content {
    flex: 1;
}

.instruction-content h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.instruction-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.key-dates {
    padding-left: 0;
    list-style: none;
    margin-bottom: 0;
}

.key-dates li {
    position: relative;
    padding-left: 0;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.key-dates li:before {
    display: none;
}

.btn-close-white {
    filter: invert(1) brightness(1.5);
}

/* Responsive styling for instructions modal */
@media (max-width: 768px) {
    .instruction-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
    }
    
    .instruction-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .modal-dialog-centered {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .instruction-content h6 {
        font-size: 1.1rem;
    }
}
