/* Custom styles for Would You Rather / Smash or Pass */

/* Hero section adjustments */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Steps section */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

/* Footer styles */
.footer {
    background: rgba(15, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-light);
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px var(--accent-glow);
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.form-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.form-btn:hover {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Login styles */
.login-container {
    max-width: 500px;
    margin: 0 auto 2rem;
}

.login-form {
    background: rgba(15, 15, 26, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.login-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
    text-align: center;
}

.login-form p {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(15, 15, 26, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.logout-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: #F44336;
}

.results-link {
    text-align: center;
    margin: 2rem 0;
}

/* Admin styles */
.admin-login-container {
    max-width: 500px;
    margin: 0 auto;
}

.admin-form {
    background: rgba(15, 15, 26, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.admin-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
    text-align: center;
}

.admin-form p {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.login-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.login-error i {
    color: #F44336;
    font-size: 1.2rem;
}

.admin-dashboard {
    background: rgba(15, 15, 26, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.admin-logout-btn {
    padding: 0.5rem 1rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Montserrat', sans-serif;
}

.admin-logout-btn:hover {
    background: rgba(244, 67, 54, 0.3);
    border-color: #F44336;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.admin-tab.active {
    background: rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
    box-shadow: 0 0 15px var(--accent-glow);
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
    animation: fadeIn 0.5s forwards;
}

.admin-filter {
    margin-bottom: 1.5rem;
}

.admin-filter input {
    width: 100%;
    padding: 1rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
}

.admin-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    font-weight: 600;
    color: var(--primary-light);
}

.admin-table tbody tr {
    transition: var(--transition);
}

.admin-table tbody tr:hover {
    background: rgba(106, 13, 173, 0.1);
}

.admin-table .action-btn {
    padding: 0.5rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.admin-table .action-btn.delete {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    color: #F44336;
}

.admin-table .action-btn.delete:hover {
    background: rgba(244, 67, 54, 0.3);
}

.admin-no-entries {
    text-align: center;
    padding: 3rem;
}

.admin-no-entries i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(15, 15, 26, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    animation: modalFadeIn 0.3s forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.modal-header h3 {
    font-size: 1.3rem;
    color: var(--primary-light);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-body {
    padding: 2rem 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.modal-btn.cancel {
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}

.modal-btn.delete {
    background: #F44336;
    border: 1px solid #F44336;
    color: white;
}

.modal-btn.cancel:hover {
    background: rgba(15, 15, 26, 0.8);
}

.modal-btn.delete:hover {
    background: #D32F2F;
}

/* Results page styles */
.results-container {
    background: rgba(15, 15, 26, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.results-summary {
    margin-bottom: 2rem;
}

.users-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.user-badge {
    text-align: center;
}

.user-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    overflow: hidden;
    box-shadow: 0 0 15px var(--accent-glow);
    border: 2px solid var(--accent);
}

.user-avatar i {
    font-size: 2rem;
    color: var(--text-light);
}

.custom-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-badge:hover .custom-avatar {
    transform: scale(1.1);
}

.vs-badge {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.match-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
}

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

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.results-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.results-tab {
    padding: 0.8rem 1.5rem;
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.results-tab.active {
    background: rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
    box-shadow: 0 0 15px var(--accent-glow);
}

.results-content {
    display: none;
}

.results-content.active {
    display: block;
    animation: fadeIn 0.5s forwards;
}

.match-item {
    background: rgba(15, 15, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}

.match-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
}

.match-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 10px;
    min-width: 100px;
}

.match-type.wyr {
    background: rgba(106, 13, 173, 0.3);
    border: 1px solid var(--primary-light);
}

.match-type.sop {
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid var(--accent);
}

.match-type i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.match-details {
    flex: 1;
}

.match-details h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-light);
}

.match-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.no-results {
    text-align: center;
    padding: 3rem;
}

.no-results i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-light);
}

.no-results p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Option selection styles */
.option.selected {
    background: rgba(106, 13, 173, 0.3);
    border-color: var(--primary-light);
    box-shadow: 0 0 15px var(--accent-glow);
}

.choice-btn.selected {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Utility classes */
.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(15, 15, 26, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .section {
        padding: 6rem 5%;
    }
    
    .option-divider {
        margin: 1rem 0;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
