/* Glorins Çekiliş - Frontend Stilleri */

.glorins-cekilis-form-wrapper {
    max-width: 650px;
    margin: 40px auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.glorins-cekilis-baslik {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.glorins-cekilis-baslik:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.glorins-cekilis-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.glorins-form-group {
    margin-bottom: 25px;
}

.glorins-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.glorins-form-group label .required {
    color: #e74c3c;
    margin-left: 4px;
    font-size: 16px;
}

.glorins-form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: #f8f9fa;
}

.glorins-form-control:hover {
    border-color: #d0d7de;
    background: white;
}

.glorins-form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.glorins-form-control::placeholder {
    color: #adb5bd;
}

.glorins-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.glorins-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.glorins-submit-btn:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.glorins-btn-loader {
    display: inline-block;
}

.glorins-spinner {
    animation: rotate 2s linear infinite;
    width: 22px;
    height: 22px;
}

.glorins-spinner .path {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Form Mesajları */
.glorins-form-messages {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    animation: slideDown 0.4s ease;
}

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

.glorins-form-messages.show {
    display: block;
}

.glorins-form-messages.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    color: #155724;
}

.glorins-form-messages.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    color: #721c24;
}

.glorins-form-messages h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
}

.glorins-form-messages p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.glorins-cekilis-no-display {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 3px dashed #2196F3;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.glorins-cekilis-no-display p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #1976D2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glorins-cekilis-no-display strong {
    font-size: 32px;
    color: #1565C0;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
    margin-top: 5px;
}

.glorins-pdf-download {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.glorins-pdf-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    color: white;
}

/* Çekiliş Sonucu */
.glorins-sonuc-wrapper {
    max-width: 750px;
    margin: 40px auto;
    padding: 20px;
}

.glorins-sonuc-box {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.glorins-sonuc-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

.glorins-sonuc-icon svg {
    width: 60px;
    height: 60px;
}

.sonuc-bekliyor .glorins-sonuc-icon {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #2196F3;
}

.sonuc-aciklandi .glorins-sonuc-icon {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #FF9800;
}

.glorins-sonuc-box h3 {
    font-size: 32px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 700;
}

.glorins-sonuc-box p {
    color: #6c757d;
    font-size: 17px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.glorins-kazanan-bilgi {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 35px;
    margin-top: 35px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.kazanan-detay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 2px solid #dee2e6;
}

.kazanan-detay:last-child {
    border-bottom: none;
}

.detay-label {
    font-weight: 700;
    color: #495057;
    font-size: 15px;
}

.detay-value {
    color: #212529;
    font-size: 17px;
    font-weight: 500;
}

.kazanan-no {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #667eea;
    font-size: 20px;
    letter-spacing: 1px;
    background: white;
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .glorins-cekilis-form-wrapper {
        margin: 20px auto;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .glorins-cekilis-form {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .glorins-cekilis-baslik {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .glorins-sonuc-box {
        padding: 40px 25px;
        border-radius: 15px;
    }
    
    .glorins-sonuc-box h3 {
        font-size: 26px;
    }
    
    .kazanan-detay {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 15px 0;
    }
    
    .glorins-form-control {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .glorins-submit-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .glorins-cekilis-no-display strong {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .glorins-cekilis-baslik {
        font-size: 22px;
    }
    
    .glorins-sonuc-icon {
        width: 100px;
        height: 100px;
    }
    
    .glorins-sonuc-icon svg {
        width: 50px;
        height: 50px;
    }
}

/* CANLI ÇEKİLİŞ SAYFA STİLLERİ */

.glorins-canli-cekilis-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.glorins-canli-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
}

.canli-baslik {
    font-size: 48px;
    margin: 0 0 15px 0;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.canli-aciklama {
    font-size: 20px;
    margin: 0;
    opacity: 0.95;
}

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

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glorins-cekilis-ekrani {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.cark-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

.cark-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
}

#carkCanvas {
    display: block;
    margin: 0 auto;
}

.cark-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #FF6B6B;
    z-index: 10;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
}

.cark-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 5;
}

.cark-center-text {
    font-size: 18px;
    font-weight: 800;
    color: #667eea;
    text-align: center;
    line-height: 1.2;
}

.cekilis-controls {
    text-align: center;
}

.draw-button {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    border: none;
    padding: 20px 60px;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.draw-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

.draw-button:disabled {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    transform: none;
}

.button-icon {
    font-size: 32px;
}

.control-info {
    margin-top: 25px;
    color: #666;
    font-size: 16px;
}

.cekilis-warning {
    text-align: center;
    padding: 40px;
    background: #fff3cd;
    border-radius: 10px;
    color: #856404;
}

.warning-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.glorins-kazanan-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.glorins-kazanan-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,215,0,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.kazanan-animation {
    position: relative;
    margin-bottom: 30px;
}

.trophy-icon {
    font-size: 120px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.kazanan-title {
    font-size: 42px;
    color: #667eea;
    margin: 0 0 40px 0;
    font-weight: 800;
}

.kazanan-info-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 2px solid #dee2e6;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 -40px;
    padding: 25px 40px;
    border-radius: 10px;
    border-bottom: none;
}

.info-item.highlight .info-label,
.info-item.highlight .info-value {
    color: white;
}

.info-label {
    font-weight: 700;
    font-size: 16px;
    color: #495057;
}

.info-value {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.info-item.special .info-value {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.glorins-katilimci-liste {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.glorins-katilimci-liste h3 {
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
    text-align: center;
}

.liste-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.liste-container::-webkit-scrollbar {
    width: 8px;
}

.liste-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.liste-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.katilimci-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.katilimci-item:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    transform: translateX(5px);
}

.katilimci-item.winner-highlight {
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    border: 3px solid #4CAF50;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
    animation: winnerPulse 1s infinite;
}

@keyframes winnerPulse {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.08); }
}

.katilimci-no {
    font-weight: bold;
    color: #667eea;
    min-width: 50px;
    font-size: 18px;
}

.katilimci-isim {
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.katilimci-cekilis-no {
    font-family: 'Courier New', monospace;
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    color: #667eea;
    font-weight: bold;
    font-size: 14px;
}

.liste-empty {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

/* Responsive Canlı Çekiliş */
@media (max-width: 768px) {
    .canli-baslik {
        font-size: 32px;
    }
    
    .canli-aciklama {
        font-size: 16px;
    }
    
    .glorins-cekilis-ekrani {
        padding: 30px 20px;
    }
    
    .cark-wrapper {
        width: 400px;
        height: 400px;
    }
    
    #carkCanvas {
        width: 400px !important;
        height: 400px !important;
    }
    
    .cark-center {
        width: 80px;
        height: 80px;
    }
    
    .cark-center-text {
        font-size: 14px;
    }
    
    .draw-button {
        padding: 15px 40px;
        font-size: 18px;
    }
    
    .kazanan-title {
        font-size: 32px;
    }
    
    .trophy-icon {
        font-size: 80px;
    }
    
    .katilimci-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
