html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Global Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
}

main {
    background-color: transparent;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
}

.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand img:hover {
    transform: rotate(10deg);
}

.nav-link {
    color: #aaa !important;
    transition: color 0.3s;
    margin-left: 1rem;
}

.nav-link:hover {
    color: #fff !important;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    margin-top: auto;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-header {
    border-bottom: 3px solid rgba(0,0,0,0.1) !important;
}

/* Butonlar */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white !important;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 87, 108, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border: none;
    color: white !important;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(250, 112, 154, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Input Alanları */
.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    color: #333;
    margin-bottom: 0.5rem;
}

/* Badge'ler */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

/* Alert */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.3s ease-out;
}

/* İstatistik Kartları */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border: none;
    border-radius: 15px;
}

/* Görsel Placeholder */
.game-cover-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
/* Global Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.05)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,144C672,139,768,149,864,154.7C960,160,1056,160,1152,154.7C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

main {
    background-color: transparent;
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 26, 0.95) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand img {
    transition: transform 0.3s;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.navbar-brand img:hover {
    transform: rotate(10deg) scale(1.1);
}

.nav-link {
    color: #aaa !important;
    transition: all 0.3s;
    margin-left: 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s;
}

.nav-link:hover {
    color: #fff !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background: rgba(26, 26, 26, 0.95) !important;
    margin-top: auto;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

footer p {
    margin-bottom: 0.5rem;
    color: #aaa;
}

footer strong {
    color: #fff;
}

/* Kartlar */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none;
    color: white;
}

/* Container */
.container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Butonlar */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.6);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(250, 112, 154, 0.6);
    color: white;
}

.btn-secondary {
    background-color: rgba(108, 117, 125, 0.8);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(90, 98, 104, 0.9);
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4);
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.6);
    color: white;
}

/* Input Alanları */
.form-control,
.form-select {
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-control:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.25);
    background: white;
}

.form-label {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Badge'ler */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc837 0%, #ff8c00 100%) !important;
    color: white !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ee0979 0%, #ff6a00 100%) !important;
}

/* Modal */
.modal-content {
    color: #f0f0f0;
    border-radius: 20px;
    border: none;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-backdrop {
    display: none !important;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px 20px 0 0;
    color: rgb(255, 255, 255);
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Alert */
.alert {
    border-radius: 15px;
    border: 2px solid;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.alert-danger {
    background: rgba(255, 193, 193, 0.2);
    border-color: #f5576c;
    color: #721c24;
}

.alert-success {
    background: rgba(193, 255, 193, 0.2);
    border-color: #38ef7d;
    color: #155724;
}

.alert-info {
    background: rgba(193, 220, 255, 0.2);
    border-color: #00b4d8;
    color: #0c5460;
}

.alert-warning {
    background: rgba(255, 240, 193, 0.2);
    border-color: #ffc837;
    color: #856404;
}

/* Row ve Col */
.row {
    margin-bottom: 2rem;
}

/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.5s ease-out;
}

/* İstatistik Kartları */
.card.bg-light {
    background: rgba(248, 249, 250, 0.95) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem;
    }
}

/* Dark mode desteği */
@media (prefers-color-scheme: dark) {
    body {
        color: #f0f0f0;
    }

    .form-control,
    .form-select {
        background: rgba(50, 50, 50, 0.9);
        color: #f0f0f0;
        border-color: rgba(102, 126, 234, 0.5);
    }

    .form-label {
        color: #f0f0f0;
    }

    .card {
        background: rgba(45, 45, 45, 0.95);
        color: #f0f0f0;
    }
}

/* ========== OYUN KARTLARI ========== */

.game-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.game-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
}

.game-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-cover {
    transform: scale(1.1);
}

.game-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    font-size: 50px;
    color: rgba(255, 255, 255, 0.5);
}

.game-rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ffc837, #ff8c00);
    color: white;
    padding: 8px 14px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-rating-badge i {
    font-size: 1rem;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-developer {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-developer i {
    color: #667eea;
    font-size: 1.1rem;
}

.game-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    font-weight: 700;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge.bg-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.status-playing {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    color: white !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.status-completed {
    background: linear-gradient(135deg, #ffc837 0%, #ff8c00 100%) !important;
    color: white !important;
}

.status-watching {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%) !important;
    color: white !important;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(102, 126, 234, 0.08);
    padding: 12px;
    border-radius: 10px;
    margin: 1rem 0;
    flex: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.stat-item i {
    color: #667eea;
    font-size: 1.2rem;
}

.game-comment {
    color: #888;
    font-size: 0.85rem;
    margin: 1rem 0 0 0;
    padding: 10px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #667eea;
    border-radius: 5px;
    flex: 1;
}

.game-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 8px 6px !important;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s;
    border: none;
    white-space: nowrap;
}

.btn-action i {
    font-size: 0.9rem;
}

.btn-action.btn-info {
    background: linear-gradient(135deg, #00b4d8, #0077b6) !important;
    color: white !important;
}

.btn-action.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

.btn-action.btn-warning {
    background: linear-gradient(135deg, #f093fb, #f5576c) !important;
    color: white !important;
}

.btn-action.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.btn-action.btn-danger {
    background: linear-gradient(135deg, #fa709a, #fee140) !important;
    color: white !important;
}

.btn-action.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(250, 112, 154, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .game-card-image {
        height: 150px;
    }

    .game-title {
        font-size: 1.1rem;
    }

    .game-stats {
        flex-direction: column;
        gap: 8px;
    }

    .stat-item {
        flex-direction: row;
    }

    .game-actions {
        grid-template-columns: 1fr;
    }
}

/* ========== SELECT DROPDOWN ========== */

.form-select {
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    background-color: white;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s;
    color: #333;
}

.form-select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    background-color: rgba(102, 126, 234, 0.02);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.25);
    background-color: white;
    outline: none;
}

.form-select option {
    background: white;
    color: #333;
    padding: 10px;
    border-radius: 8px;
}

.form-select option:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.form-select option:checked {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Disabled state */
.form-select:disabled {
    background-color: #e9ecef;
    opacity: 0.65;
    cursor: not-allowed;
}

/* Small select */
.form-select-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
    padding-right: 35px;
}

/* Large select */
.form-select-lg {
    padding: 14px 16px;
    font-size: 1.1rem;
    padding-right: 45px;
}

/* Input group select */
.input-group .form-select {
    border-radius: 0;
}

.input-group .form-select:first-child {
    border-radius: 12px 0 0 12px;
}

.input-group .form-select:last-child {
    border-radius: 0 12px 12px 0;
}