@font-face {
    font-family: 'Viaoda Libre';
    src: url('/fonts/ViaodaLibre-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Chalet London';
    src: url('/fonts/CHALET_LONDONNINETEENSIXTY.OTF') format('opentype');
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: url('/img/s_background.png') no-repeat top center,
                linear-gradient(to bottom, 
                    rgba(18, 18, 23, 0) 0%,
                    rgba(18, 18, 23, 0.3) 30%,
                    rgba(18, 18, 23, 0.7) 60%,
                    #121217 100%);
    background-size: cover, 100% 200vh;
    background-attachment: fixed, scroll;
    background-repeat: no-repeat, repeat;
}

.logo-container {
    position: relative;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding-top: 5px;
    text-align: center;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.logo {
    width: 250px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.award-logo {
    width: 460px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 40px auto 0;
}

.main-title {
    font-family: 'Viaoda Libre', serif;
    font-size: 64px;
    font-weight: normal;
    color: white;
    text-align: center;
    margin: 40px auto 0;
    max-width: 800px;
    line-height: 1.2;
    background: linear-gradient(90deg, 
        white 0%, 
        rgba(200, 200, 200, 0.8) 25%, 
        rgba(150, 150, 150, 0.6) 50%, 
        rgba(200, 200, 200, 0.8) 75%, 
        white 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 5s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.description {
    font-family: 'Chalet London', sans-serif;
    font-size: 22px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 30px auto 0;
    max-width: 800px;
    line-height: 1.4;
    padding: 0 20px;
}

.button-container {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 40px auto 0;
}

.discord-login-btn {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 16px 32px;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Chalet London', Arial, sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    border-radius: 4px;
}

.discord-login-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.discord-login-btn:active {
    background: rgba(255, 255, 255, 0.05);
}

.logout-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.8);
    padding: 16px 32px;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Chalet London', Arial, sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    border-radius: 4px;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

.logout-btn:active {
    background: rgba(255, 255, 255, 0.05);
}

.discord-icon {
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 4.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z"/></svg>') no-repeat center;
    background-size: contain;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(18, 18, 23, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-family: 'Chalet London', sans-serif;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Chalet London', sans-serif;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Chalet London', sans-serif;
    font-size: 1rem;
    transition: all 0.15s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
    background: #5865F2;
    border: none;
    border-radius: 6px;
    color: white;
    padding: 14px 28px;
    font-family: 'Chalet London', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #4752C4;
}

.submit-btn:active {
    background: #3B4CA0;
}

.thank-you-content {
    text-align: center;
    padding: 20px 0;
}

.thank-you-content h4 {
    color: white;
    font-family: 'Chalet London', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.thank-you-content p {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Chalet London', sans-serif;
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.my-candidates {
    margin: 120px auto 0;
    max-width: 800px;
    padding: 0 20px;
}

.my-candidates h4 {
    color: white;
    font-family: 'Viaoda Libre', sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.candidates-list {
    display: grid;
    gap: 12px;
}

.candidate-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.candidate-info {
    flex: 1;
}

.candidate-name {
    color: white;
    font-family: 'Chalet London', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.candidate-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
}

.candidate-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.candidate-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: 'Chalet London', sans-serif;
    font-weight: 500;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.status-approved {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-rejected {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

/* Карточки кандидатов */
.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 50px auto 0;
    max-width: 1200px;
    padding: 0 20px;
}

.candidate-card {
    width: 300px;
    height: 400px;
    background: url('/img/nomination.svg') no-repeat center;
    background-size: contain;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.candidates-grid:hover .candidate-card:not(:hover) {
    opacity: 0.7;
}

.candidate-logo {
    width: 60px;
    height: 60px;
    background: url('/img/mini_logo_diamond.png') no-repeat center;
    background-size: contain;
    margin-top: 30px;
    margin-bottom: 10px;
}

.candidate-name {
    color: white;
    font-family: 'Viaoda Libre', sans-serif;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 10px 0;
    text-transform: uppercase;
}

.candidate-status-badge {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 12px;
    color: white;
    font-family: 'Viaoda Libre', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.candidate-facebrowser-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    cursor: pointer;
    font-family: 'Chalet London', Arial, sans-serif;
    font-size: 18px;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: auto;
    margin-bottom: 20px;
}

.candidate-facebrowser-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.candidate-facebrowser-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
}
