/* 30 Ağustos Zafer Bayramı Tema CSS - Mobil Öncelikli */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* Mobil Öncelikli Tasarım */
* {
    touch-action: manipulation;
}

body {
    font-size: 16px;
    -webkit-tap-highlight-color: rgba(231, 76, 60, 0.3);
}

/* Mobil cihazlar için optimizasyon */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .container {
        padding: 10px;
    }

    /* Mobil cihazlarda daha büyük dokunmatik hedefler */
    button, .share-btn, input, select {
        min-height: 44px;
    }

    /* Mobil klavye için optimizasyon */
    input[type="tel"] {
        -webkit-appearance: none;
        appearance: none;
    }
}

/* Hero Section - Temiz ve Basit */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 25px;
    min-height: 70vh;
}

.hero-content {
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.flag-image {
    width: 100px;
    height: 67px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.main-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
    opacity: 0.9;
    padding: 0 10px;
}

.register-button {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.register-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.register-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.register-button i {
    margin-right: 10px;
}

/* Tablet ve Desktop için */
@media (min-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-content {
        max-width: 500px;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .register-button {
        width: auto;
        max-width: none;
        padding: 18px 35px;
        font-size: 1.3rem;
    }
}


/* Modal Styles - Mobil Öncelikli */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    margin: 5% auto;
    padding: 25px 20px;
    border-radius: 20px;
    width: 95%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.modal h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    padding-top: 10px;
}

/* Tablet için modal optimizasyonu */
@media (min-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px;
        width: 90%;
        max-width: 500px;
        max-height: 80vh;
    }

    .close {
        right: 25px;
        top: 20px;
        font-size: 28px;
    }

    .modal h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

/* Form Styles - Mobil Öncelikli */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
    transform: scale(1.02);
}

.form-group input[type="tel"] {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* Mobil için input optimizasyonu */
@media (max-width: 480px) {
    .form-group input {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    .form-group input[type="tel"] {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

.submit-button {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 18px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
    min-height: 55px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.resend-button {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
    transition: all 0.3s ease;
}

.resend-button:hover:not(:disabled) {
    background: #e74c3c;
    color: white;
}

.resend-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Countdown Styles - Mobil Dostu */
.countdown {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(231, 76, 60, 0.2);
}

.countdown div {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
}

.countdown span {
    color: #e74c3c;
    font-size: 2.2rem;
}

/* Mobil için countdown optimizasyonu */
@media (max-width: 480px) {
    .countdown {
        margin: 20px 0;
        padding: 15px;
    }

    .countdown div {
        font-size: 1.5rem;
    }

    .countdown span {
        font-size: 2rem;
    }
}

/* Success Modal */
.success-content {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin: 20px 0;
}

.success-content p {
    margin: 15px 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Share Section */
.share-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.share-section p {
    margin-bottom: 15px;
    color: #2c3e50;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hashtags {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Otomatik yönlendirme stilleri */
.auto-redirect {
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    margin-top: 15px;
    border: 1px solid rgba(231, 76, 60, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

#redirectCountdown {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Close Button */
.close-button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 20px;
}

/* Admin Panel Styles */
.admin-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2c3e50;
}

.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.admin-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.login-card h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.login-card p {
    color: #2c3e50;
    margin-bottom: 30px;
}

.admin-login-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.admin-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Admin Panel Ana Sayfa */
.admin-panel {
    min-height: 100vh;
    color: #2c3e50;
}

/* Admin panelindeki tüm metinler siyah olsun */
.admin-panel *,
.admin-panel h1,
.admin-panel h2,
.admin-panel h3,
.admin-panel p,
.admin-panel span,
.admin-panel div,
.admin-panel td,
.admin-panel th,
.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.admin-panel label,
.admin-panel input::placeholder,
.admin-panel textarea::placeholder {
    color: #2c3e50 !important;
}

/* Özel durumlar için daha güçlü kural */
.admin-panel .users-table td,
.admin-panel .users-table th,
.admin-panel .stat-card h3,
.admin-panel .stat-card p,
.admin-panel .section-header h2,
.admin-panel .usage-item,
.admin-panel .pagination span,
.admin-panel .loading,
.admin-panel .error,
.admin-panel .no-data,
.admin-panel .message {
    color: #2c3e50 !important;
}

/* Admin panelinde beyaz renk varsa siyah yap */
.admin-panel [style*="color: white"],
.admin-panel [style*="color:white"],
.admin-panel [style*="color: #fff"],
.admin-panel [style*="color:#fff"],
.admin-panel [style*="color: #ffffff"],
.admin-panel [style*="color:#ffffff"] {
    color: #2c3e50 !important;
}

/* Admin paneli için çok güçlü genel kural */
.admin-container * {
    color: #2c3e50;
}

.admin-container .admin-panel * {
    color: #2c3e50 !important;
}

.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: #2c3e50;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

#adminWelcome {
    color: #2c3e50;
    font-weight: 600;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

.admin-main {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* İstatistik Kartları */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-icon:nth-child(1) { color: #3498db; }
.stat-icon:nth-child(2) { color: #27ae60; }
.stat-icon:nth-child(3) { color: #e74c3c; }

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stat-card p {
    color: #7f8c8d;
    margin: 0;
}

/* Admin Grid */
.admin-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 30px;
    align-items: start;
}

.users-section, .usage-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.5rem;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px 15px;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    font-size: 0.9rem;
    min-width: 250px;
    color: #2c3e50;
}

.search-box input:focus {
    outline: none;
    border-color: #3498db;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Tablo */
.users-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    color: #2c3e50;
}

.users-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.users-table tbody tr:hover {
    background: #f8f9fa;
}

.users-table tbody td {
    color: #2c3e50;
    font-weight: 500;
}

.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
}

.status.verified {
    background: #d4edda;
    color: #155724;
}

.status.unverified {
    background: #f8d7da;
    color: #721c24;
}

.loading, .error, .no-data {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Kullanım Formu */
.usage-form {
    margin-bottom: 30px;
}

.usage-submit-btn {
    background: linear-gradient(45deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.usage-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

/* Son Kullanımlar */
.usage-list {
    max-height: 300px;
    overflow-y: auto;
}

.usage-item {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.usage-info strong {
    color: #2c3e50;
    display: block;
}

.usage-info span {
    color: #6c757d;
    font-size: 0.9rem;
}

.usage-details {
    text-align: right;
}

.usage-details span {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
}

.usage-details span:first-child {
    color: #2c3e50;
    font-weight: 600;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.page-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #e9ecef;
    transform: translateY(-1px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Message */
.message {
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    font-weight: 600;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-images {
        order: -1;
    }

    .hero-image {
        width: 200px;
        height: 150px;
    }

    .features-section {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 5% auto;
        padding: 20px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        justify-content: center;
    }

    /* Admin responsive */
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        min-width: 200px;
    }

    .usage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .usage-details {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .main-title {
        font-size: 1.8rem;
    }

    .hero-image {
        width: 150px;
        height: 120px;
    }

    .feature-card {
        padding: 20px;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 30px 20px;
    }

    .admin-main {
        padding: 20px 15px;
    }

    .search-box input {
        min-width: 150px;
    }
}