.eslestirme-background {
    background: fixed;
    background-size: cover;
    background-position: center;
    background-image: url('/files/images/etkinlik-background.jpg');
    filter: brightness(0.6);
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.eslestirme-content {
    position: relative;
    z-index: 1;
}

.eslestirme-container {
    background: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 1600px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.eslestirme-baslik {
    font-family: 'HiJack', sans-serif;
    font-size: 3.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Saved List */
.saved-list-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-list-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fbbf24;
}

.saved-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.saved-item {
    background: rgba(26, 26, 31, 0.8);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.saved-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.saved-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.saved-item-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.saved-item-format {
    background: rgba(139, 92, 246, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #c4b5fd;
}

.saved-item-info {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.saved-item-actions {
    display: flex;
    gap: 10px;
}

.saved-item-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.view-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.view-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
}

.delete-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: scale(1.05);
}

/* Current Saved Container */
.current-saved-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.current-saved-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.current-saved-header h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
}

.back-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
}

/* Players Container */
.players-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.players-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.players-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
}

.players-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.player-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 26, 31, 0.8);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
}

.player-item:hover {
    background: rgba(26, 26, 31, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.player-name {
    font-weight: 600;
    color: #fff;
}

.remove-btn {
    background: rgba(220, 38, 38, 0.3);
    border: 1px solid rgba(220, 38, 38, 0.5);
    color: #fca5a5;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: rgba(220, 38, 38, 0.5);
    transform: scale(1.1);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #a0a0a0;
}

.empty-state p {
    font-size: 1.1rem;
}

.empty-state code {
    background: rgba(139, 92, 246, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    color: #c4b5fd;
}

/* Matchmaking Section */
.matchmaking-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.format-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.format-label {
    font-weight: 600;
    color: #fff;
}

.format-select {
    background: rgba(26, 26, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.format-select:hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.format-select:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Action Buttons */
.action-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.add-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.match-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.match-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.part-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.part-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.save-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

.clear-btn {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.clear-btn:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.4);
}

.cancel-btn {
    background: rgba(107, 114, 128, 0.3);
    color: #d1d5db;
    border: 1px solid rgba(107, 114, 128, 0.5);
}

.cancel-btn:hover {
    background: rgba(107, 114, 128, 0.5);
}

.actions-section {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Matches Grid */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.match-card {
    background: rgba(26, 26, 31, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    min-width: 0;
}

.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-number {
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
}

.match-type {
    background: rgba(139, 92, 246, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #c4b5fd;
    font-weight: 600;
}

.match-teams {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.team-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 5px;
}

.team-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.5);
}

.member-name {
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.team-divider {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fbbf24;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Parts Container */
.parts-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.part-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.part-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(26, 26, 31, 0.95);
    margin: 10% auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.close {
    color: #a0a0a0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.modal-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.modal-input::placeholder {
    color: #6b7280;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.current-matches-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .eslestirme-baslik {
        font-size: 2.5rem;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }

    .saved-list-grid {
        grid-template-columns: 1fr;
    }

    .format-selector {
        flex-direction: column;
        align-items: stretch;
    }

    .format-select {
        width: 100%;
    }

    .actions-section {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}
