/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 5px;
    text-align: center;
}

.tagline {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 15px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

nav a {
    color: #667eea;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

nav a:hover {
    background: #667eea;
    color: white;
}

/* Main Content */
main {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.code-box {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 5px;
    margin-top: 10px;
    border: 1px solid #ddd;
    font-family: monospace;
    overflow-x: auto;
}

.code-box code {
    color: #e83e8c;
}

/* Search Box */
.search-box {
    margin-bottom: 30px;
}

.search-box form {
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    min-width: 250px;
    transition: border-color 0.3s;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

.search-results {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 1em;
    opacity: 0.9;
}

/* Site Cards */
.sites-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.site-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.site-rank {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
    min-width: 60px;
    text-align: center;
}

.site-info {
    flex: 1;
}

.site-name {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.site-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.site-name a:hover {
    color: #667eea;
}

.site-votes {
    color: #666;
    font-size: 0.95em;
}

.vote-count {
    background: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #ddd;
}

.site-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
}

.btn-vote {
    background: #28a745;
    color: white;
}

.btn-vote:hover {
    background: #218838;
    transform: scale(1.05);
}

.btn-malicious {
    background: #dc3545;
    color: white;
}

.btn-malicious:hover {
    background: #c82333;
    transform: scale(1.05);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-current {
    background: #667eea;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.pagination .btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.pagination .btn:hover {
    background: #e9ecef;
}

/* Add Site Section */
.add-site-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.add-site-section h2 {
    margin-bottom: 20px;
    text-align: center;
}

.add-site-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.info-text {
    text-align: center;
    margin-bottom: 10px;
    opacity: 0.95;
}

.info-text code {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 3px;
}

.add-method {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.add-site-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.add-site-form input[type="text"] {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    min-width: 250px;
}

.add-site-form button {
    padding: 12px 30px;
    background: white;
    color: #667eea;
    font-weight: bold;
}

.add-site-form button:hover {
    background: #f8f9fa;
}

.add-bulk-form textarea,
.add-txt-form input[type="file"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-family: monospace;
    margin-bottom: 10px;
}

.add-txt-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ad Block */
.ad-block {
    padding: 20px;
    background: #fff3cd;
    border: 2px dashed #ffc107;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    text-align: center;
    color: #666;
}

footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .site-card {
        flex-direction: column;
        text-align: center;
    }

    .site-rank {
        min-width: auto;
    }

    .site-actions {
        justify-content: center;
        width: 100%;
    }

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

    .add-site-form,
    .search-box form {
        flex-direction: column;
    }

    .add-site-form input[type="text"],
    .search-box input[type="text"] {
        width: 100%;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    main {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .tagline {
        font-size: 0.9em;
    }

    .site-name {
        font-size: 1.1em;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.admin-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #667eea;
}

.admin-section {
    margin-bottom: 40px;
}

.admin-section h2 {
    color: #667eea;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    font-family: inherit;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
    font-family: monospace;
}

.list-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-item .domain {
    font-weight: 500;
    color: #333;
}

.list-item .btn {
    padding: 8px 16px;
    font-size: 0.9em;
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 30px;
}

.btn-logout {
    background: #dc3545;
    color: white;
}

.btn-logout:hover {
    background: #c82333;
}
.ad-btn.sms{background:#f97316;color:#fff}.ad-btn.mail{background:#9333ea;color:#fff}