/* Discord Tournament Signup - Frontend Styles */

.dts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.dts-header {
    text-align: center;
    margin-bottom: 30px;
}

.dts-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ffffff;
}

.dts-header p {
    color: #b0b0b0;
    font-size: 1.1em;
}

/* Login Section */
.dts-login-section {
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.dts-discord-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #5865F2;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.dts-discord-button:hover {
    background: #4752C4;
    color: white;
}

.dts-discord-button svg {
    width: 24px;
    height: 24px;
}

/* User Info */
.dts-user-info {
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(88, 101, 242, 0.5);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    color: #ffffff;
}

.dts-user-info p {
    margin: 0;
    color: #ffffff;
}

/* Notices */
.dts-notice {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.dts-notice-success {
    background: rgba(35, 90, 50, 0.6);
    border: 2px solid rgba(70, 180, 100, 0.5);
    color: #a8e6a3;
}

.dts-notice-warning {
    background: rgba(100, 80, 30, 0.6);
    border: 2px solid rgba(255, 193, 7, 0.5);
    color: #ffd966;
}

.dts-notice p {
    margin: 0 0 10px 0;
}

.dts-notice p:last-child {
    margin-bottom: 0;
}

/* Form Container */
.dts-form-container {
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.dts-required-note {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.dts-required {
    color: #ff6b6b;
    font-weight: bold;
}

/* Form Groups */
.dts-form-group {
    margin-bottom: 25px;
}

.dts-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.dts-form-group .dts-checkbox-label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

/* Input Fields */
.dts-input,
.dts-textarea,
.dts-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: rgba(30, 30, 30, 0.8);
    color: #ffffff;
}

.dts-input:focus,
.dts-textarea:focus,
.dts-select:focus {
    outline: none;
    border-color: #5865F2;
    background: rgba(30, 30, 30, 0.9);
}

.dts-textarea {
    resize: vertical;
}

/* Radio Groups */
.dts-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dts-radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s;
    color: #ffffff;
}

.dts-radio-group label:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dts-radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.dts-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Buttons */
.dts-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.dts-button-primary {
    background: #5865F2;
    color: white;
}

.dts-button-primary:hover {
    background: #4752C4;
}

.dts-button-secondary {
    background: #6c757d;
    color: white;
}

.dts-button-secondary:hover {
    background: #5a6268;
}

.dts-button-danger {
    background: #dc3545;
    color: white;
}

.dts-button-danger:hover {
    background: #c82333;
}

.dts-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.dts-form-actions {
    margin-top: 30px;
}

/* Form Messages */
#dts-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
}

#dts-form-message.success {
    display: block;
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

#dts-form-message.error {
    display: block;
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

/* Signups List */
.dts-signups-list {
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
}

.dts-signups-list h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
}

.dts-list-count {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #b0b0b0;
}

.dts-signup-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dts-signup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
    gap: 15px;
}

.dts-signup-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dts-signup-item:last-child {
    border-bottom: none;
}

.dts-signup-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.dts-player-names {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dts-username {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.05em;
}

.dts-ut-id {
    font-size: 0.8em;
    color: #888888;
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dts-date {
    color: #888888;
    font-size: 0.85em;
    white-space: nowrap;
}

.dts-signup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dts-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dts-badge-sub {
    background: rgba(156, 39, 176, 0.3);
    border: 1px solid rgba(156, 39, 176, 0.6);
    color: #ce93d8;
}

.dts-badge-captain {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.6);
    color: #a5d6a7;
}

.dts-badge-captain-maybe {
    background: rgba(255, 152, 0, 0.3);
    border: 1px solid rgba(255, 152, 0, 0.6);
    color: #ffb74d;
}

.dts-badge-needs-sub {
    background: rgba(33, 150, 243, 0.3);
    border: 1px solid rgba(33, 150, 243, 0.6);
    color: #90caf9;
}

/* Responsive */
@media (max-width: 768px) {
    .dts-container {
        padding: 15px;
    }

    .dts-form-container {
        padding: 20px;
    }

    .dts-login-section {
        padding: 30px 20px;
    }

    .dts-radio-group {
        gap: 8px;
    }

    .dts-signup-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dts-date {
        align-self: flex-start;
    }

    .dts-action-buttons {
        flex-direction: column;
    }

    .dts-button {
        width: 100%;
    }
}
