/* =========================================
   O3 Oxhijyen - Müşteri Onay Sayfası
   Modern, Responsive, Premium Design
   ========================================= */

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

/* ---- CSS Custom Properties ---- */
:root {
    --primary: #0077B6;
    --primary-light: #00B4D8;
    --primary-dark: #023E8A;
    --secondary: #48BB78;
    --secondary-dark: #38A169;
    --danger: #E53E3E;
    --danger-dark: #C53030;
    --whatsapp: #25D366;
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    --bg-gradient-start: #e0f7fa;
    --bg-gradient-mid: #f0f9ff;
    --bg-gradient-end: #e8f5e9;
    --card-bg: rgba(255, 255, 255, 0.82);
    --card-border: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* ---- Animated Background ---- */
.bg-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-bubbles span {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(0, 119, 182, 0.06);
    border-radius: 50%;
    animation: bubbleFloat 15s infinite ease-in-out;
}

.bg-bubbles span:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-delay: 0s; animation-duration: 18s; }
.bg-bubbles span:nth-child(2) { left: 25%; width: 30px; height: 30px; animation-delay: 2s; animation-duration: 14s; }
.bg-bubbles span:nth-child(3) { left: 45%; width: 60px; height: 60px; animation-delay: 4s; animation-duration: 20s; }
.bg-bubbles span:nth-child(4) { left: 65%; width: 50px; height: 50px; animation-delay: 1s; animation-duration: 16s; }
.bg-bubbles span:nth-child(5) { left: 80%; width: 70px; height: 70px; animation-delay: 3s; animation-duration: 22s; }
.bg-bubbles span:nth-child(6) { left: 35%; width: 45px; height: 45px; animation-delay: 5s; animation-duration: 17s; }

@keyframes bubbleFloat {
    0%   { transform: translateY(100vh) rotate(0deg) scale(0.5); opacity: 0; }
    20%  { opacity: 0.5; }
    50%  { opacity: 0.3; }
    100% { transform: translateY(-100px) rotate(720deg) scale(1.2); opacity: 0; }
}

/* ---- Page Wrapper ---- */
.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 120px;
}

/* ---- Logo ---- */
.logo-container {
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease-out;
    text-align: center;
}

.logo-container img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
    transition: var(--transition);
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* ---- Customer Card ---- */
.customer-card {
    width: 100%;
    max-width: 540px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: fadeInUp 0.7s ease-out;
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 24px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.card-header .subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.card-body {
    padding: 28px;
}

/* ---- Info Grid ---- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
}

.info-item {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-light);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-label .icon {
    font-size: 0.85rem;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    word-break: break-word;
}

/* ---- Divider ---- */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e0, transparent);
    margin: 8px 0 24px;
}

/* ---- Question Section ---- */
.question-section {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.question-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: inline-block;
    animation: pulse 2s infinite;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 4px;
}

.question-subtext {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ---- Button Group ---- */
.btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-choice {
    padding: 16px 20px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn-choice::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-yes {
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    border-color: var(--secondary);
    color: var(--secondary-dark);
}

.btn-yes:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(72,187,120,0.35);
}

.btn-yes.selected {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(72,187,120,0.35);
}

.btn-no {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border-color: var(--danger);
    color: var(--danger-dark);
}

.btn-no:hover {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(229,62,62,0.35);
}

.btn-no.selected {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-dark) 100%);
    color: #fff;
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(229,62,62,0.35);
}

.btn-choice .btn-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.btn-choice .btn-label {
    font-size: 0.82rem;
}

/* ---- Note Section ---- */
.note-section {
    margin-bottom: 20px;
    animation: slideDown 0.4s ease-out;
    display: none;
}

.note-section.visible {
    display: block;
}

.note-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.note-textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #f7fafc;
    resize: vertical;
    transition: var(--transition);
    line-height: 1.5;
}

.note-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0,180,216,0.12);
}

.note-textarea::placeholder {
    color: #a0aec0;
}

/* ---- Submit Button ---- */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-submit.visible {
    display: flex;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,119,182,0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-submit.loading .spinner {
    display: block;
}

.btn-submit.loading .btn-text {
    display: none;
}

/* ---- WhatsApp Button ---- */
.whatsapp-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37,211,102,0.4);
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    text-decoration: none;
    animation: fadeIn 1s ease-out 0.8s both;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37,211,102,0.5);
}

.whatsapp-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.whatsapp-tooltip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

/* ---- Success Overlay ---- */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.4s ease-out;
    padding: 24px;
}

.success-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 24px;
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-icon.onay {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    box-shadow: 0 12px 32px rgba(72,187,120,0.3);
}

.success-icon.red {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 12px 32px rgba(0,119,182,0.3);
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-align: center;
}

.success-message {
    font-size: 1rem;
    color: var(--text-medium);
    text-align: center;
    max-width: 400px;
    line-height: 1.6;
}

/* ---- Already Responded ---- */
.already-responded {
    text-align: center;
    padding: 32px 20px;
}

.already-responded .ar-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.already-responded h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.already-responded p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* ---- Error Page ---- */
.error-page {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.6s ease-out;
}

.error-page .error-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.error-page p {
    font-size: 1rem;
    color: var(--text-medium);
}

/* ---- Footer ---- */
.page-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.75rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); max-height: 0; }
    to { opacity: 1; transform: translateY(0); max-height: 300px; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .page-wrapper {
        padding: 16px 12px 100px;
    }

    .logo-container img {
        height: 44px;
    }

    .card-header {
        padding: 20px 20px;
    }

    .card-header h1 {
        font-size: 1.1rem;
    }

    .card-body {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-choice {
        flex-direction: row;
        padding: 14px 18px;
    }

    .btn-choice .btn-icon {
        font-size: 1.5rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .page-wrapper {
        padding: 20px 16px 100px;
    }
}

/* ---- Print ---- */
@media print {
    .whatsapp-btn,
    .bg-bubbles {
        display: none !important;
    }
}
