/* Temel Stiller */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
}

:root {
    --primary-color: #1abc9c;
    --background-dark: #1d2b1f;
    --card-dark: #08370d;
    --text-light: #ecf0f1;
}

body {
    background: var(--background-dark);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ana Düzen */
.desktop-layout {
    display: flex;
    min-height: 100vh;
    gap: 20px;
    padding: 20px;
}

.control-panel {
    width: 320px;
    padding: 25px;
    background: var(--card-dark);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    height: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.field-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-dark);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Futbol Sahası - Çizgileri azaltılmış hali */
.football-field {
    width: 120%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg,
            #103810,
            #103810 50px,
            #204a20 50px,
            #204a20 100px);
    /* Çizgi aralıklarını artırdım */
    border-radius: 15px;
    position: relative;
    aspect-ratio: 3/2;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.15);
}

/* Saha Çizgileri */
.field-lines {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.center-line {
    position: absolute;
    width: 4px;
    height: 100%;
    left: 50%;
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%);
}

.center-circle {
    position: absolute;
    width: 240px;
    height: 240px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Penaltı Alanları */
.penalty-area {
    position: absolute;
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.penalty-area.top {
    height: 40%;
    width: 20%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.penalty-area.bottom {
    height: 40%;
    width: 20%;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Ceza Sahası Yayları */
.penalty-arc {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.penalty-arc.left {
    left: 20%;
    top: 50%;
    transform: translate(-50%, -50%);
    clip-path: polygon(0 30%, 100% 30%, 100% 70%, 0 70%);
}

.penalty-arc.right {
    right: 20%;
    top: 50%;
    transform: translate(50%, -50%);
    clip-path: polygon(0 30%, 100% 30%, 100% 70%, 0 70%);
}

/* Kale Alanları */
.goal-area {
    position: absolute;
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.goal-area.top {
    height: 20%;
    width: 10%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.goal-area.bottom {
    height: 20%;
    width: 10%;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Penaltı Noktaları */
.penalty-spot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
}

.penalty-spot.left {
    left: 15%;
    transform: translate(-50%, -50%);
}

.penalty-spot.right {
    right: 15%;
    transform: translate(50%, -50%);
}

/* Köşe Yayları */
.corner-arc {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.corner-arc.top-left {
    top: -10px;
    left: -10px;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.corner-arc.top-right {
    top: -10px;
    right: -10px;
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.corner-arc.bottom-left {
    bottom: -10px;
    left: -10px;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.corner-arc.bottom-right {
    bottom: -10px;
    right: -10px;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
}

/* Oyuncu Stilleri */
.player {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: move;
    transition: transform 0.2s ease;
    z-index: 1;
    width: 70px;
    height: 98px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.player-jersey {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('images/jersey-solid.png');
}

/* Forma Stilleri */
.jersey-solid {
    background-image: url('images/jersey-solid.png');
}

.jersey-gs {
    background-image: url('images/jersey-gs.png');
}

.jersey-fb {
    background-image: url('images/jersey-fb.png');
}

.jersey-bjk {
    background-image: url('images/jersey-bjk.png');
}

.jersey-ts {
    background-image: url('images/jersey-ts.png');
}

.jersey-2 {
    background: url("images/jersey-2.png") no-repeat center center;
    background-size: contain;
}

/* Forma Numarası */
.player-jersey div {
    position: relative;
    z-index: 1;
    font-size: 18px;
    text-align: center;
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.player-jersey.jersey-fb div {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.player-jersey::before,
.player-jersey::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 32px;
    top: 4px;
}

.player-jersey>span {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: inherit;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.player-info {
    margin-top: 0px;
    color: #ecf0f1;
    background: rgba(29, 1, 18, 0.7);
    padding: 5px 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Kaptan Stili */
.player.captain {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    border-radius: 50%;
}

.player.captain .player-info::after {
    content: "K";
    display: inline-block;
    margin-left: 5px;
    background: gold;
    color: black;
    font-weight: bold;
    font-size: 0.8em;
    padding: 2px 4px;
    border-radius: 4px;
}

/* Çizim Kontrolleri */
.drawing-controls {
    margin-top: 15px;
    width: 100%;
}

.drawing-options {
    display: none;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.drawing-color-select {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
}

.drawing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Çizim Elementleri */
.drawing-line {
    position: absolute;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    transform-origin: left center;
    pointer-events: none;
    z-index: 2;
}

.drawing-arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    pointer-events: none;
    z-index: 2;
    border-right: 3px solid rgba(255, 255, 255, 0.9);
    border-top: 3px solid rgba(255, 255, 255, 0.9);
    transform-origin: center;
}

.drawing-rectangle {
    position: absolute;
    background: transparent;
    pointer-events: none;
}

.drawing-freehand {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.freehand-segment {
    position: absolute;
    height: 2px;
    transform-origin: 0 50%;
}

.drawing-text {
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    cursor: move;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Butonlar */
#drawButton {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 5px;
}

#drawButton .button-text {
    display: inline;
}

#drawButton .active-text {
    display: none;
}

#drawButton.active {
    background: #03331f;
    position: relative;
}

#drawButton.active .button-text {
    display: none;
}

#drawButton.active .active-text {
    display: inline;
    color: #fff;
}

#drawButton.active::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: blink 1s infinite;
}

.drawing-buttons button {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin: 0;
}

#undoButton {
    background: #ff9800;
}

#undoButton:hover {
    background: #f57c00;
}

#clearButton {
    background: #dc3545;
}

#clearButton:hover {
    background: #c82333;
}

.download-btn {
    width: 100%;
    background: #2196F3;
    color: white;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

/* Kontrol Paneli Stilleri */
.control-panel h2 {
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.control-panel .info-text {
    color: var(--text-light);
    background: rgba(8, 88, 3, 0.9);
    padding: 10px 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.control-panel select,
.control-panel button,
.control-panel input[type="text"],
.control-panel input[type="number"] {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(45, 44, 44, 0.9);
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.control-panel button {
    background: var(--primary-color);
    color: var(--background-dark);
    font-weight: 600;
}

.control-panel button:hover {
    background: #00cc6f;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(46, 77, 49, 0.85);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 90%;
    max-width: 380px;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.modal-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.modal-content label {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.modal-content input[type="text"],
.modal-content input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="number"]:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.15);
}

.captain-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.captain-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    background: rgba(255, 255, 255, 0.08);
}

.captain-checkbox input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.captain-checkbox input[type="checkbox"]:checked::before {
    content: '✓';
    position: absolute;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.captain-checkbox label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    width: 100%;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.modal-buttons button:first-child {
    background: var(--primary-color);
    color: #ffffff;
}

.modal-buttons button:last-child {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-buttons button:first-child:hover {
    background: #1dd1a1;
}

.modal-buttons button:last-child:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
    animation: backdropFadeIn 0.3s ease-out;
}

/* Yükleme Ekranı */
#loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-light);
    margin-top: 15px;
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Filigran */
.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.2),
        -2px -2px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 3px;
    z-index: 1000;
}

/* Footer */
footer {
    background: linear-gradient(125deg, #073b4a 0%, #18652f 100%);
    color: white;
    padding: 60px 0 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-links li {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links i {
    font-size: 0.9em;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* SEO İçeriği */
.seo-content {
    background: var(--card-dark);
    padding: 40px 0;
    margin-top: 40px;
    color: var(--text-light);
}

.seo-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.seo-content h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.seo-content h3 {
    font-size: 24px;
    color: var(--text-light);
    margin: 30px 0 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.seo-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.seo-content ul {
    list-style: none;
    padding-left: 20px;
    margin: 15px 0;
}

.seo-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.seo-content ul li::before {
    content: '⚽';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.seo-content .conclusion {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animasyonlar */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

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

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

/* Medya Sorguları */
@media (max-width: 768px) {
    .desktop-layout {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .control-panel {
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .football-field {
        aspect-ratio: 9/16;
        background-image: repeating-linear-gradient(0deg,
                #103810,
                #103810 50px,
                #204a20 50px,
                #204a20 100px);
        /* Çizgi aralıklarını artırdım */
    }

    /* Saha çizgilerini yeniden konumlandır */
    .center-line {
        width: 100%;
        height: 2px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .center-circle {
        width: 130px;
        height: 130px;
    }

    .penalty-area.top,
    .penalty-area.bottom {
        width: 70%;
        height: 20%;
        left: 50%;
        transform: translateX(-50%);
    }

    .penalty-area.top {
        top: 0;
    }

    .penalty-area.bottom {
        bottom: 0;
        top: auto;
    }

    /* Ceza sahası yaylarını yeniden konumlandır */
    .penalty-arc.left {
        left: 50%;
        top: 20%;
        transform: translate(-50%, -50%);
        clip-path: polygon(30% 0, 70% 0, 70% 100%, 30% 100%);
    }

    .penalty-arc.right {
        left: 50%;
        bottom: 20%;
        top: auto;
        transform: translate(-50%, 50%);
        clip-path: polygon(30% 0, 70% 0, 70% 100%, 30% 100%);
    }

    .goal-area.top,
    .goal-area.bottom {
        width: 40%;
        height: 8%;
        left: 50%;
        transform: translateX(-50%);
    }

    .goal-area.top {
        top: 0;
    }

    .goal-area.bottom {
        bottom: 0;
        top: auto;
    }

    .penalty-spot.left {
        left: 50%;
        top: 15%;
        transform: translate(-50%, -50%);
    }

    .penalty-spot.right {
        left: 50%;
        bottom: 15%;
        top: auto;
        transform: translate(-50%, 50%);
    }

    .corner-arc {
        width: 15px;
        height: 15px;
    }

    /* Oyuncu pozisyonlarını düzelt */
    .player {
        transform: scale(0.8);
    }

    .player-jersey {
        width: 55px;
        height: 67px;
    }

    .player-jersey div {
        font-size: 20px;
    }

    .player.captain {
        box-shadow: none;
    }

    .player.captain .player-jersey {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
        border-radius: 12px;
        position: relative;
    }

    /* Çizim kontrolleri */
    .drawing-options {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(45, 44, 44, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px 20px 0 0;
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .drawing-options-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        width: 100%;
    }

    .drawing-options-container button,
    .drawing-options-container select {
        width: 100%;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        color: #fff;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all 0.2s ease;
    }

    /* Mobil çizim pop-up'ı için select düzeltmesi */
    .drawing-options select,
    .drawing-options-container select {
        background-color: rgba(45, 44, 44, 0.95);
        color: #fff;
        border: 1px solid rgba(255, 255, 255, 0.2);
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 30px;
    }

    .drawing-options select option,
    .drawing-options-container select option {
        background-color: #2e4d31;
        color: #fff;
    }

    .drawing-options-container button:active,
    .drawing-options-container select:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.15);
    }

    .drawing-options.active {
        display: block;
        animation: slideUp 0.3s ease forwards;
    }

    /* Footer */
    footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 30px;
    }

    .footer-section {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links a {
        justify-content: center;
    }

    /* SEO içeriği */
    .seo-content {
        padding: 30px 0;
        margin-top: 30px;
    }

    .seo-content h2 {
        font-size: 26px;
    }

    .seo-content h3 {
        font-size: 20px;
    }

    .seo-content p {
        font-size: 15px;
        line-height: 1.6;
    }

    .seo-content ul {
        padding-left: 10px;
    }

    .seo-content ul li {
        padding-left: 20px;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .seo-content .conclusion {
        margin-top: 20px;
        padding: 15px;
    }

    /* Modal */
    .modal {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .control-panel {
        width: 280px;
        padding: 15px;
    }

    /* Ceza sahası yayları */
    .penalty-arc {
        width: 100px;
        height: 100px;
    }
}

@media (orientation: landscape) {
    .football-field {
        width: 95%;
        max-width: none;
    }

    .control-panel {
        width: 500px;
        padding: 15px;
    }
}

@media (min-width: 1024px) {
    .field-container {
        max-width: 1900px;
        width: 100%;
        height: auto;
        margin: 0 auto;
        padding: 20px;
    }

    .football-field {
        width: 100%;
        height: auto;
        max-width: 1400px;
        max-height: 800px;
        margin: 0 auto;
    }
}

@media (max-width: 1400px) {
    .football-field {
        aspect-ratio: 9/16;
        background-image: repeating-linear-gradient(0deg,
                #103810,
                #103810 50px,
                #204a20 50px,
                #204a20 100px);
        /* Çizgi aralıklarını artırdım */
    }

    /* Saha çizgilerini yeniden konumlandır */
    .center-line {
        width: 100%;
        height: 2px;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
    }

    .center-circle {
        width: 130px;
        height: 130px;
    }

    .penalty-area.top,
    .penalty-area.bottom {
        width: 70%;
        height: 20%;
        left: 50%;
        transform: translateX(-50%);
    }

    .penalty-area.top {
        top: 0;
    }

    .penalty-area.bottom {
        bottom: 0;
        top: auto;
    }

    /* Ceza sahası yaylarını yeniden konumlandır */
    .penalty-arc.left {
        left: 50%;
        top: 20%;
        transform: translate(-50%, -50%);
        clip-path: polygon(30% 0, 70% 0, 70% 100%, 30% 100%);
    }

    .penalty-arc.right {
        left: 50%;
        bottom: 20%;
        top: auto;
        transform: translate(-50%, 50%);
        clip-path: polygon(30% 0, 70% 0, 70% 100%, 30% 100%);
    }

    .goal-area.top,
    .goal-area.bottom {
        width: 40%;
        height: 8%;
        left: 50%;
        transform: translateX(-50%);
    }

    .goal-area.top {
        top: 0;
    }

    .goal-area.bottom {
        bottom: 0;
        top: auto;
    }

    .penalty-spot.left {
        left: 50%;
        top: 15%;
        transform: translate(-50%, -50%);
    }

    .penalty-spot.right {
        left: 50%;
        bottom: 15%;
        top: auto;
        transform: translate(-50%, 50%);
    }

    .corner-arc {
        width: 15px;
        height: 15px;
    }

    /* Oyuncu pozisyonlarını düzelt */
    .player {
        transform: scale(0.8);
    }
}

/* Takım Adı Stilleri */
.team-name-container {
    margin-bottom: 15px;
}

.team-name-container label {
    display: block;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.team-name-container input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(45, 44, 44, 0.9);
    color: var(--text-light);
    font-size: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.team-name-display {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    z-index: 5;
    text-align: center;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .team-name-display {
        font-size: 14px;
        padding: 4px 12px;
        top: 5px;
    }
}

/* Instagram Popup Stilleri */
.instagram-popup {
    position: fixed;
    bottom: -200px;
    /* Başlangıçta ekranın dışında */
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    transition: bottom 0.5s ease-in-out;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.instagram-popup.show {
    bottom: 0;
    /* Gösterildiğinde ekranın altında */
}

.instagram-popup-content {
    padding: 15px;
}

.instagram-popup-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.instagram-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.instagram-popup-header span {
    font-weight: 600;
    font-size: 16px;
    color: #262626;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.close-instagram-popup {
    position: absolute;
    right: 0;
    top: 0;
    background: none;
    border: none;
    font-size: 24px;
    color: #8e8e8e;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.instagram-popup-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.instagram-popup-body p {
    margin: 0 0 15px;
    font-size: 14px;
    color: #262626;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.instagram-follow-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.instagram-follow-button:hover {
    transform: translateY(-2px);
}

.instagram-follow-button i {
    margin-right: 8px;
    font-size: 16px;
}

/* Masaüstü için Instagram Popup */
@media (min-width: 769px) {
    .instagram-popup {
        width: 320px;
        left: auto;
        right: 20px;
        border-radius: 15px;
        bottom: -300px;
    }

    .instagram-popup.show {
        bottom: 20px;
    }

    .instagram-popup-content {
        padding: 20px;
    }
}

/* İndirme için takım adı stili */
.download-team-name {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    z-index: 10;
    text-align: center;
    max-width: none;
    white-space: nowrap;
}

/* Çizim Yap Butonu Stilini Güncelleme */
#drawButton {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    background: #2196F3;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

#drawButton:hover {
    background: #1976D2;
    transform: translateY(-2px);
}

#drawButton i {
    font-size: 16px;
}

#drawButton.active {
    background: #03331f;
    position: relative;
}

#drawButton.active .button-text {
    display: none;
}

#drawButton.active .active-text {
    display: inline;
    color: #fff;
}

#drawButton.active::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    animation: blink 1s infinite;
}