/* ===========================================
   GLOBAL SITE CSS - style.css
   Modern, responsive ve tutarlı tasarım
   =========================================== */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===========================================
   RESET & BASE STYLES
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: #2d3748;
    font-weight: 400;
}

/* Body scroll kontrolü (mobil menü için) */
body.menu-open {
    overflow: hidden;
}

/* ===========================================
   LAYOUT & CONTAINERS
   =========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    margin-top: 100px; /* Header için alan */
}

.page-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 100px;
}

/* ===========================================
   TYPOGRAPHY
   =========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    color: white;
    margin: 3rem 0 2rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    color: #2d3748;
}

p {
    margin-bottom: 1rem;
    font-weight: 400;
}

/* ===========================================
   NAVBAR STYLES
   =========================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #2d3748;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: fadeInDown 0.6s ease-out;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 60px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo img:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.menu-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.menu-links a {
    color: #4a5568;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.4s ease;
}

.menu-links a:hover::before {
    left: 100%;
}

.menu-links a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.menu-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 2px;
    opacity: 0.8;
}

.menu-links a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.menu-links a.active:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.menu-links a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #4a5568;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
}

.menu-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    transform: scale(1.1);
}

/* ===========================================
   BUTTONS
   =========================================== */

.button,
button,
input[type="submit"] {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-family: inherit;
}

.button::before,
button::before,
input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover::before,
button:hover::before,
input[type="submit"]:hover::before {
    left: 100%;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.button:active,
button:active,
input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.button:focus,
button:focus,
input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.button:disabled,
button:disabled,
input[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===========================================
   FORMS
   =========================================== */

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    width: 100%;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background-color: #fff;
    transition: all 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

input[type="text"]:valid,
input[type="email"]:valid,
input[type="password"]:valid {
    border-color: #48bb78;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===========================================
   CARDS & LISTINGS
   =========================================== */

.listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    padding: 0 10px;
}

.listing-item,
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.listing-item::before,
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.listing-item:hover::before,
.card:hover::before {
    opacity: 1;
}

.listing-item:hover,
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.listing-item img,
.card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.listing-item:hover img,
.card:hover img {
    transform: scale(1.05);
}

.listing-item h3,
.card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin: 1.5rem 1.5rem 0.8rem 1.5rem;
    line-height: 1.3;
}

.listing-item .price,
.card .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #667eea;
    margin: 0 1.5rem 0.8rem 1.5rem;
    position: relative;
    animation: pulse 3s infinite;
}

.listing-item .price::before,
.card .price::before {
    content: '💰';
    margin-right: 8px;
    font-size: 1.2rem;
}

.listing-item .description,
.card .description {
    color: #718096;
    margin: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-item .button,
.card .button {
    display: block;
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem 1.5rem;
    padding: 14px 20px;
    text-align: center;
}

/* ===========================================
   CATEGORY LIST
   =========================================== */

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 2rem 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.category-item {
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.category-item a {
    display: block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    color: #2d3748;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.category-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    transition: left 0.5s ease;
}

.category-item a:hover::before {
    left: 100%;
}

.category-item a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* ===========================================
   MESSAGES & ALERTS
   =========================================== */

.message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: 500;
    text-align: center;
    border: 1px solid;
    backdrop-filter: blur(10px);
}

.message.success {
    background: rgba(240, 255, 244, 0.9);
    color: #38a169;
    border-color: #9ae6b4;
}

.message.error {
    background: rgba(254, 215, 215, 0.9);
    color: #e53e3e;
    border-color: #feb2b2;
}

.message.info {
    background: rgba(235, 248, 255, 0.9);
    color: #3182ce;
    border-color: #90cdf4;
}

/* ===========================================
   ANIMATIONS
   =========================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.listing-item,
.card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.listing-item:nth-child(1) { animation-delay: 0.1s; }
.listing-item:nth-child(2) { animation-delay: 0.2s; }
.listing-item:nth-child(3) { animation-delay: 0.3s; }
.listing-item:nth-child(4) { animation-delay: 0.4s; }
.listing-item:nth-child(5) { animation-delay: 0.5s; }
.listing-item:nth-child(6) { animation-delay: 0.6s; }

.form-group {
    animation: slideUp 0.5s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 1024px) {
    .navbar {
        padding: 12px 20px;
    }
    
    .container {
        padding: 15px;
        margin-top: 90px;
    }
    
    .menu-links {
        gap: 6px;
    }
    
    .menu-links a {
        font-size: 15px;
        padding: 8px 14px;
    }
    
    .logo img {
        height: 55px;
    }
    
    .listings {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .container {
        padding: 10px;
        margin-top: 80px;
    }
    
    .page-wrapper {
        padding: 15px;
        margin-top: 80px;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }
    
    .menu-links {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    }
    
    .menu-links.show {
        transform: translateY(0);
    }
    
    .menu-links a {
        font-size: 18px;
        padding: 15px 30px;
        border-radius: 15px;
        min-width: 200px;
        text-align: center;
        background: rgba(102, 126, 234, 0.05);
        border: 1px solid rgba(102, 126, 234, 0.1);
    }
    
    .menu-links a:hover {
        background: rgba(102, 126, 234, 0.15);
        transform: translateY(-3px) scale(1.05);
    }
    
    .menu-links a.active {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        transform: translateY(-3px) scale(1.05);
    }
    
    .logo img {
        height: 50px;
    }
    
    .listings {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        margin: 2rem 0;
    }
    
    .listing-item img,
    .card img {
        height: 220px;
    }
    
    h2 {
        font-size: 1.8rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .form-container {
        padding: 30px 25px;
        border-radius: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .category-list {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        margin: 1.5rem 0;
    }
    
    .category-item {
        min-width: auto;
        max-width: none;
    }
    
    .category-item a {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px 12px;
    }
    
    .container {
        padding: 8px;
        margin-top: 70px;
    }
    
    .page-wrapper {
        padding: 12px;
        margin-top: 70px;
    }
    
    .logo img {
        height: 45px;
    }
    
    .menu-links {
        gap: 20px;
    }
    
    .menu-links a {
        font-size: 16px;
        padding: 12px 25px;
        min-width: 180px;
    }
    
    .listings {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .listing-item img,
    .card img {
        height: 200px;
    }
    
    .listing-item h3,
    .card h3 {
        font-size: 1.2rem;
        margin: 1.2rem 1.2rem 0.6rem 1.2rem;
    }
    
    .listing-item .price,
    .card .price {
        font-size: 1.4rem;
        margin: 0 1.2rem 0.6rem 1.2rem;
    }
    
    .listing-item .description,
    .card .description {
        margin: 0 1.2rem 1.2rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .listing-item .button,
    .card .button {
        width: calc(100% - 2.4rem);
        margin: 0 1.2rem 1.2rem 1.2rem;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .form-container {
        padding: 25px 20px;
    }
    
    .category-item a {
        padding: 12px 14px;
        border-radius: 10px;
    }
    
    .button,
    button,
    input[type="submit"] {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* ===========================================
   ACCESSIBILITY & SPECIAL STATES
   =========================================== */

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .listing-item,
    .card,
    .form-container {
        background: rgba(45, 55, 72, 0.95);
        color: #e2e8f0;
    }
    
    .listing-item h3,
    .card h3 {
        color: #f7fafc;
    }
    
    .listing-item .description,
    .card .description {
        color: #a0aec0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .listing-item,
    .card {
        border: 2px solid #000;
    }
    
    .button,
    button,
    input[type="submit"] {
        background: #000;
        border: 2px solid #000;
    }
}

/* Print styles */
@media print {
    .navbar,
    .menu-toggle,
    .banner-container {
        display: none;
    }
    
    .container {
        margin-top: 0;
    }
    
    .listing-item,
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ===========================================
   UTILITIES
   =========================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.w-full { width: 100%; }
.w-half { width: 50%; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }