:root {
    --bg: #0f172a;
    --text: #ffffff;
    --poll-bg: #1e293b;
    --input-bg: #334155;
    --accent: #3b82f6;
    --accent-alt: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
}

[data-theme="light"] {
    --bg: #f9fafb;
    --text: #111827;
    --poll-bg: #e5e7eb;
    --input-bg: #d1d5db;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-area, #create-section {
    background: var(--poll-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    text-align: center;
}

h2, h3 {
    margin-top: 0;
}

input, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 14px;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: 2px solid var(--accent);
}

button {
    cursor: pointer;
    font-weight: bold;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    transition: 0.3s ease;
}

button.login-btn {
    background: linear-gradient(to right, var(--accent), var(--accent-alt));
    color: #fff;
    width: 100%;
    margin-top: 14px;
    font-size: 16px;
}

button.login-btn:hover {
    opacity: 0.95;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 14px;
    color: #ccc;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    cursor: pointer;
}

/* Sosyal Butonlar */
.social-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.social-buttons a {
    padding: 10px 18px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: 0.3s;
}

.social-buttons a:hover {
    transform: translateY(-3px);
}

.x-btn {
    background: linear-gradient(to right, #1da1f2, #0d8ddb);
}
.tg-btn {
    background: linear-gradient(to right, #0088cc, #005577);
}
.web-btn {
    background: linear-gradient(to right, #34d399, #059669);
}

/* Poll */
.poll {
    background: var(--poll-bg);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.poll img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 12px;
}

.vote-btn, .modern-btn {
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    margin-right: 8px;
    transition: 0.3s ease;
}

.vote-btn:hover, .modern-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.poll .admin-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    border-radius: 6px;
    font-weight: bold;
}

.admin-btn.edit { background: var(--accent); }
.admin-btn.delete { background: var(--danger); }
.admin-btn.stats { background: var(--success); }

canvas {
    margin-top: 16px;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: var(--poll-bg);
    color: var(--text);
    padding: 24px;
    border-radius: 14px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
    color: #aaa;
}

/* Mobil Uyum */
@media (max-width: 600px) {
    .container {
        padding: 12px;
    }
    .vote-btn, .modern-btn {
        width: 100%;
        margin-right: 0;
    }
    .poll .admin-controls {
        flex-direction: column;
    }
    .social-buttons {
        flex-direction: column;
    }
}
.poll-ended {
    margin: 12px 0;
    color: #ef4444;
    font-weight: bold;
    text-align: center;
}
.captcha-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 10px 0;
}

.g-recaptcha {
    transform: scale(0.76);         /* mobilde küçültme */
    transform-origin: 0 0;
}

@media (min-width: 500px) {
    .g-recaptcha {
        transform: scale(1);
    }
}
.main-title {
    text-align: center;
    font-size: 6vw;
    font-weight: 900;
    margin: 24px auto;
    line-height: 1.4;
    max-width: 90%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: fadeIn 0.6s ease-in-out;
    word-break: break-word;
}

.emoji {
    -webkit-text-fill-color: initial !important;
    background: none !important;
    display: inline;
    margin-right: 6px;
}

@media (min-width: 768px) {
    .main-title {
        font-size: 32px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
#main-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-top: 30px;
    color: #0284c7;
    line-height: 1.4;
}

#main-title .memex-word {
    display: inline-block;
    color: #0ea5e9;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
}















