/* TorrentScraper - Configuration Page Styles */
/* Premium dark glassmorphism design */

:root {
    --primary: #8A5AAB;
    --primary-light: #A77BC7;
    --accent: #4A90D9;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.85);
    --bg-input: rgba(30, 30, 45, 0.9);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --success: #4ade80;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(138, 90, 171, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(74, 144, 217, 0.15) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 520px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.version {
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(138, 90, 171, 0.2);
    border: 1px solid rgba(138, 90, 171, 0.3);
    border-radius: 20px;
    color: var(--primary-light);
}

.description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 24px 0;
}

/* Content Types Badges */
.content-types {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group>label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: var(--primary);
    background: rgba(138, 90, 171, 0.1);
}

.checkbox-item input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-item input:checked+.checkmark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
}

.checkbox-item input:checked+.checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.label-text {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.label-info {
    font-size: 12px;
    color: var(--text-muted);
}

/* Select Input */
.select-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.2s ease;
}

.select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 90, 171, 0.2);
}

.select-input option {
    background: #1a1a2e;
    color: var(--text-primary);
}

/* Text Input */
.debrid-section {
    position: relative;
}

.rd-logo {
    margin-right: 6px;
}

.helper-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.helper-text a {
    color: var(--accent);
    text-decoration: none;
}

.helper-text a:hover {
    text-decoration: underline;
}

.text-input {
    width: 100%;
    padding: 14px 50px 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 90, 171, 0.2);
}

.text-input::placeholder {
    color: var(--text-muted);
}

.toggle-visibility {
    position: absolute;
    right: 12px;
    bottom: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toggle-visibility:hover {
    opacity: 1;
}

/* Install Section */
.install-section {
    text-align: center;
}

.install-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 90, 171, 0.4);
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(138, 90, 171, 0.5);
}

.install-button:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
}

.install-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    margin-top: 24px;
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 24px;
    }

    h1 {
        font-size: 24px;
    }

    .title-section {
        flex-direction: column;
        gap: 8px;
    }
}
