/*
Theme Name: Kupon Tema
Theme URI: https://ornek.site
Author: Sen
Description: Affiliate odaklı kupon paylaşım teması
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kupon-tema
*/

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f7;
    color: #111827;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    box-sizing: border-box;
}

.sidebar .logo {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
}

.sidebar nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #374151;
    font-size: 15px;
}

.sidebar nav a:hover {
    background: #f3f4f6;
}

.main-content {
    flex: 1;
    padding: 24px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-bar h1 {
    font-size: 24px;
    margin: 0;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

.btn-primary:hover {
    background: #1d4ed8;
    text-decoration: none;
}

.coupon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.coupon-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coupon-store {
    font-weight: 600;
    font-size: 15px;
}

.coupon-discount {
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.coupon-title {
    font-size: 16px;
    font-weight: 600;
}

.coupon-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
}

.coupon-type-badge {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.coupon-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-secondary {
    background: #f3f4f6;
    color: #111827;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.btn-secondary:hover {
    background: #e5e7eb;
    text-decoration: none;
}

.badge-hot {
    background: #fee2e2;
    color: #b91c1c;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

/* Form stilleri */

.form-card {
    max-width: 640px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 14px;
    box-sizing: border-box;
}

.form-row textarea {
    min-height: 80px;
}

.notice {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.notice-success {
    background: #ecfdf3;
    color: #166534;
}

.notice-error {
    background: #fef2f2;
    color: #b91c1c;
}

/* Responsive */

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main-content {
        padding: 16px;
    }
}
