:root {
    --primary-color: #d4af37; /* Gold */
    --bg-dark: #1a1a1a;
    --card-bg: #2a2a2a;
    --text-light: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent-blue: #3498db;
    --danger: #e74c3c;
    --success: #2ecc71;
    --shadow: 0 10px 30px rgba(0,0,0,0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%),
                url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 30px;
}

header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 5px;
}

.subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.05);
}

.intro-card {
    text-align: center;
    font-size: 1.1rem;
    border-left: 4px solid var(--primary-color);
}

/* Form Styles */
.form-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

/* Mode Selection */
.mode-selection {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #444;
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    border: 1px solid #333;
    transition: all 0.3s;
    font-weight: normal;
}

.radio-label:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
}

.radio-label input {
    display: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-color);
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.evidence-section {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.evidence-column {
    flex: 1;
}

.dynamic-list {
    margin-bottom: 10px;
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.btn-remove {
    background: #333;
    color: var(--text-dim);
    border: none;
    border-radius: 4px;
    width: 40px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
}

.btn-add {
    background: transparent;
    color: var(--accent-blue);
    border: 1px dashed var(--accent-blue);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-add:hover {
    background: rgba(52, 152, 219, 0.1);
}

.form-actions {
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: #444;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    cursor: pointer;
}

/* Loading */
.loading-card {
    text-align: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #333;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.typing-text {
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-dim);
    margin-top: 10px;
}

/* Result Card */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.result-header h2 {
    color: var(--primary-color);
}

.result-timestamp {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.result-content {
    white-space: pre-wrap;
    font-size: 1.05rem;
    margin-bottom: 30px;
    background: rgba(0,0,0,0.2);
    padding: 20px;
    border-radius: 8px;
}

/* Affiliate */
.affiliate-section h3, .dynamic-ad-title {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
}

.dynamic-ad-title {
    text-align: center;
    margin-top: 30px;
    border-top: 1px dashed rgba(212, 175, 55, 0.2);
    padding-top: 25px;
}

.affiliate-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.affiliate-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #333;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, background 0.2s;
}

.affiliate-card:hover {
    transform: scale(1.02);
    background: #444;
}

.affiliate-card .icon {
    font-size: 2rem;
}

.affiliate-card strong {
    display: block;
    color: var(--primary-color);
}

.affiliate-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.result-actions {
    text-align: center;
    margin-top: 30px;
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

footer nav {
    margin-top: 10px;
}

footer a {
    color: var(--text-dim);
    margin: 0 10px;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* Dynamic Ads */
.ad-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
    min-width: 280px;
    max-width: 350px;
    flex: 1 1 300px;
    transition: transform 0.3s;
}

.ad-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.ad-label {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 6px;
}

.ad-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .evidence-section {
        flex-direction: column;
    }
}
