/* ===========================
   Anket Sistemi - Premium Stil Dosyası
   Ana Renk: #316d5e
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #316d5e;
    --primary-light: #42937e;
    --primary-dark: #224d42;
    --primary-glow: rgba(49, 109, 94, 0.6);
    --bg-dark: #0f131a;
    --bg-card: rgba(25, 30, 40, 0.6);
    --bg-card-hover: rgba(30, 36, 48, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --danger: #ff4757;
    --success: #2ed573;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* === Premium Animated Background === */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

body::before {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(49, 109, 94, 0.3) 0%, transparent 70%);
    animation: drift 15s infinite alternate ease-in-out;
}

body::after {
    bottom: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
    animation: drift2 20s infinite alternate ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10%, 10%); }
}
@keyframes drift2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10%, -10%); }
}

/* === Container === */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    width: 100%;
}

/* === Header === */
.site-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.site-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.site-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.site-header .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(49, 109, 94, 0.15);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* === Glass Card === */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

/* === Survey List (index.php) === */
.survey-list {
    display: grid;
    gap: 24px;
}

.survey-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.survey-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.survey-card:hover {
    transform: translateY(-5px);
    border-color: rgba(49, 109, 94, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 40px rgba(49, 109, 94, 0.2);
}
.survey-card:hover::before { opacity: 1; }

.survey-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.survey-title .icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(49, 109, 94, 0.4);
}

.survey-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    padding-left: 62px;
}

.survey-meta {
    display: flex;
    gap: 20px;
    padding-left: 62px;
}
.survey-meta span {
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

/* === Form Elements === */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.form-group label .required { color: var(--danger); margin-left: 4px; }

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(49, 109, 94, 0.2);
}
.form-control::placeholder { color: var(--text-muted); }

/* Select Box */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.7)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}
select.form-control option { background: var(--bg-dark); color: #fff; }

textarea.form-control { min-height: 120px; resize: vertical; }

/* === Wizard Steps === */
.wizard-step {
    display: none;
    animation: slideIn 0.5s forwards cubic-bezier(0.25, 1, 0.5, 1);
}
.wizard-step.active {
    display: block;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.wizard-header {
    text-align: center;
    margin-bottom: 30px;
}
.wizard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 8px;
}
.wizard-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* === Questions in Wizard === */
.question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
    text-align: center;
}
.question-required { color: var(--danger); }

/* Options (Radio/Checkbox) */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    position: relative;
}
.option-item input { display: none; }

.option-item label {
    display: flex;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.option-item label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}
.option-item input:checked + label {
    background: rgba(49, 109, 94, 0.2);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(49, 109, 94, 0.3);
}

/* Custom Checkbox/Radio Indicator */
.option-item label::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}
.option-item input[type="checkbox"] + label::before { border-radius: 6px; }

.option-item input:checked + label::before {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: inset 0 0 0 4px rgba(49, 109, 94, 0.4);
}
.option-item input[type="checkbox"]:checked + label::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: none;
}

/* === Progress Bar === */
.progress-container {
    margin-bottom: 40px;
    text-align: center;
}
.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}
.progress-bar-bg {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* === Buttons === */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.wizard-footer.single-btn { justify-content: flex-end; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 8px 25px rgba(49, 109, 94, 0.5);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 30px rgba(49, 109, 94, 0.6);
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* === Empty/Error States === */
.empty-state { text-align: center; padding: 40px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.6; }

/* === Toast === */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    z-index: 10000;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* === Footer === */
.site-footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .glass-card { padding: 24px; }
    .wizard-footer { flex-direction: column-reverse; gap: 12px; }
    .btn { width: 100%; justify-content: center; }
    .survey-meta { padding-left: 0; flex-direction: column; gap: 10px; }
    .survey-desc { padding-left: 0; }
}
