/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Golos Text', sans-serif;
    background-color: #020202;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 20px 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.logo {
    margin-bottom: 40px;
}

.logo-svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 20px rgba(62, 164, 75, 0.5));
}

/* Main Card */
.main-card {
    position: relative;
    background-color: #0B0B0B;
    border-radius: 18px;
    padding: 24px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header */
.header {
    text-align: left;
    margin-bottom: 20px;
    position: relative;
}

.title {
    font-family: 'Fugaz One', cursive;
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0;
}

.subtitle {
    font-size: 12px;
    color: #737373;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.spots-info {
    font-size: 14px;
    color: #737373;
    text-align: left;
}

/* Input Section */
.input-section {
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 0;
}

.input-label {
    display: block;
    font-size: 12px;
    color: #737373;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-container {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 16px;
    padding-right: 48px; /* Make room for the X button */
    background-color: #171717;
    border: 1px solid #262626;
    border-radius: 18px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Golos Text', sans-serif;
    transition: border-color 0.3s ease;
}

.clear-button {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #737373;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
    line-height: 1;
}

.clear-button:hover {
    color: #ffffff;
}

.input-field:focus {
    outline: none;
    border-color: #3EA44B;
    box-shadow: 0 0 0 2px rgba(62, 164, 75, 0.1);
}

.input-field::placeholder {
    color: #737373;
    font-size: 12px;
}

/* Check Button */
.check-button {
    width: 100%;
    padding: 16px;
    background-color: #3EA44B;
    color: #ffffff;
    border: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Golos Text', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.check-button:hover {
    background-color: #4FC660;
    transform: translateY(-1px);
}

.check-button:active {
    transform: translateY(0);
}

.check-button:disabled {
    background-color: #262626;
    color: #737373;
    cursor: not-allowed;
    transform: none;
}

/* Result Container */
.result-container {
    margin-top: 20px;
    padding: 24px;
    border-radius: 18px;
    text-align: left;
    background-color: #171717;
    border: 1px solid #262626;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
    padding: 0 24px;
}

.result-container.show {
    max-height: 500px;
    padding: 24px;
    margin-top: 20px;
}

.result-container.success {
    background-color: rgba(62, 164, 75, 0.08);
    border: 1px solid rgba(62, 164, 75, 0.3);
}

.result-container.error {
    background-color: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.result-message {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    white-space: pre-line;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.result-container.success .result-message {
    color: #3EA44B;
}

.result-container.error .result-message {
    color: #DC3545;
}

/* Loading state */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* FAQ Section */
.faq-section {
    margin-top: 40px;
    max-width: 500px;
    width: 100%;
}

.faq-title {
    font-family: 'Fugaz One', cursive;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 24px;
    text-align: left;
}

.faq-item {
    margin-bottom: 16px;
    background-color: #171717;
    border: 1px solid #262626;
    border-radius: 18px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: #1f1f1f;
}

.faq-question span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.faq-icon {
    font-size: 20px;
    color: #3EA44B;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #737373;
}

.faq-answer a {
    color: #3EA44B;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.faq-answer a:hover {
    color: #4FC660;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px 24px;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 20px 16px;
    }
    
    .main-card {
        padding: 20px;
    }
    
    .title {
        font-size: 36px;
    }

    .faq-section {
        margin-top: 30px;
    }

    .faq-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .result-container {
        padding: 0 20px;
    }
    
    .result-container.show {
        margin-top: 16px;
        padding: 20px;
    }
    
    .result-message {
        font-size: 12px;
        word-break: break-all;
    }
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10.5px;
    background-color: #262626;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.footer-link:hover {
    background-color: #404040;
}

.footer-link svg {
    height: 16px;
    width: 16px;
}
