:root {
    --bg-color: #f3f8ff;
    --panel-bg: rgba(255, 255, 255, 0.7);
    --text-main: #2d3436;
    --text-muted: #636e72;
    --primary-color: #ff6b6b;
    --primary-hover: #ff5252;
    --secondary-color: #48dbfb;
    --secondary-hover: #0abde3;
    --spin-color: #1dd1a1;
    --spin-hover: #10ac84;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0) 0, transparent 50%);
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}

body::before {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: #ff9ff3;
}

body::after {
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: #48dbfb;
}

.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 40px;
    flex: 1;
}

.left-panel,
.right-panel {
    flex: 1;
    min-width: 300px;
}

.left-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff6b6b, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

textarea {
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    border: 2px solid #dfe6e9;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

textarea:focus {
    border-color: var(--primary-color);
}

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

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
}

.btn:active {
    transform: scale(0.95);
}

.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.primary:hover {
    background-color: var(--primary-hover);
}

.secondary {
    background-color: #dfe6e9;
    color: var(--text-main);
}

.secondary:hover {
    background-color: #b2bec3;
}

.right-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wheel-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: rotate(0deg);
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    color: #ff4757;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.spin-btn {
    background-color: var(--spin-color);
    color: white;
    font-size: 1.5rem;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(29, 209, 161, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-btn:hover {
    background-color: var(--spin-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(29, 209, 161, 0.6);
}

.spin-btn:active {
    transform: translateY(2px);
}

.spin-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.hidden .modal-content {
    transform: scale(0.8);
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #feca57;
}

.winner-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left-panel {
        order: 2;
    }

    .right-panel {
        order: 1;
    }
}

/* V2 Eklemeleri */
.presets {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.presets-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.preset-btn {
    background: white;
    border: 1px solid #dfe6e9;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.history-container {
    margin-top: 30px;
    width: 100%;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.history-container h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

#history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

#history-list li {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.empty-history {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #b2bec3;
    font-weight: 400 !important;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.warning {
    background-color: #ff9f43;
    color: white;
}

.warning:hover {
    background-color: #feca57;
}




/* V3 Eklemeleri - Sekmeler (Tabs) */
.tabs-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    color: var(--text-muted);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.tab-pane {
    width: 100%;
    display: none;
}

.tab-pane.active {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.center-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.center-panel h1 {
    margin-bottom: 30px;
}

/* 3D Scene Common */
.scene {
    width: 200px;
    height: 200px;
    perspective: 600px;
    margin-bottom: 40px;
}

/* 3D Dice */
.dice {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(-100px) rotateX(-15deg) rotateY(15deg);
}

.dice.rolling {
    animation: rollDiceAnim 2s linear infinite;
}

@keyframes rollDiceAnim {
    0% {
        transform: translateZ(-100px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: translateZ(-100px) rotateX(720deg) rotateY(720deg) rotateZ(360deg);
    }
}

.dice-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2d3436;
    margin: 5px;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.5);
}

.face-1 {
    transform: rotateY(0deg) translateZ(100px);
}

.face-2 {
    transform: rotateY(180deg) translateZ(100px);
}

.face-3 {
    transform: rotateY(90deg) translateZ(100px);
}

.face-4 {
    transform: rotateY(-90deg) translateZ(100px);
}

.face-5 {
    transform: rotateX(90deg) translateZ(100px);
}

.face-6 {
    transform: rotateX(-90deg) translateZ(100px);
}

/* Face layout specifics */
.face-1 .dot {
    background: #ff4757;
}

.face-2 {
    justify-content: space-between;
}

.face-2 .dot:nth-child(1) {
    align-self: flex-start;
}

.face-2 .dot:nth-child(2) {
    align-self: flex-end;
}

.face-3 {
    justify-content: space-between;
    align-items: stretch;
}

.face-3 .dot:nth-child(1) {
    align-self: flex-start;
}

.face-3 .dot:nth-child(2) {
    align-self: center;
}

.face-3 .dot:nth-child(3) {
    align-self: flex-end;
}

.face-4 {
    justify-content: space-between;
}

.face-4 .column,
.face-5 .column,
.face-6 .column {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.face-5 {
    justify-content: space-between;
}

.face-5 .column:nth-child(2) {
    justify-content: center;
}

.face-6 {
    justify-content: space-between;
}

/* 3D Coin (1 TL) */
.coin-scene {
    perspective: 1000px;
}

.coin {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.coin.flipping {
    animation: flipCoinAnim 2s linear infinite;
}

@keyframes flipCoinAnim {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(1080deg);
    }
}

.coin-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 8px solid #fbc531;
    /* Altın dış çember */
    background: linear-gradient(45deg, #dcdde1, #f5f6fa, #dcdde1);
    /* Gümüş iç */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.coin-inner {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px solid #bdc3c7;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #2f3640;
}

.coin-front {
    transform: rotateY(0deg);
}

.coin-back {
    transform: rotateY(180deg);
}

.coin-value {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.coin-currency {
    font-size: 1.2rem;
    font-weight: 600;
}

.coin-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Result Text */
.result-text {
    margin-top: 20px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    animation: fadeIn 0.5s;
}

.result-text.hidden {
    display: none;
}

/* SEO Content & Footer */
.seo-section {
    margin-top: 40px;
    margin-bottom: 20px;
    width: 100%;
}

.seo-card {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    line-height: 1.6;
}

.seo-card h2,
.seo-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    margin-top: 20px;
}

.seo-card h2:first-child {
    margin-top: 0;
}

#cheat-hint-container {
    background: rgba(255, 234, 167, 0.3);
    padding: 15px;
    border-radius: 12px;
    border-left: 4px solid #fdcb6e;
    transition: opacity 0.5s;
}

.site-footer {
    width: 100%;
    text-align: center;
    padding: 30px;
    margin-top: auto;
    color: var(--text-muted);
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.legal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.legal-text-body {
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
}
/* Legal and informational pages */
.legal-page {
    display: block;
    width: 100%;
    max-width: 980px;
    padding-top: 40px;
}

.legal-article {
    width: 100%;
}

.legal-article h1 {
    margin-bottom: 24px;
}

.legal-article h2 {
    color: var(--primary-color);
    font-size: 1.45rem;
    margin: 30px 0 12px;
}

.legal-article p {
    font-size: 1.05rem;
    line-height: 1.75;
}

.legal-article a {
    color: var(--primary-color);
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--text-muted) !important;
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary-color) !important;
}