/* Custom Styles for Okul Satış */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-card {
    text-align: center;
    padding: 1rem;
}

.category-card i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-card {
    position: relative;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
}

.product-card .btn {
    margin-top: auto;
}

/* Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* Search Form */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Cart Badge */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Filters */
.filter-sidebar {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    height: fit-content;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h6 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Forms */
.form-label {
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #343a40 100%);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--warning-color) !important;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .filter-sidebar {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Product Details */
.product-image {
    max-height: 400px;
    object-fit: contain;
}

.product-info {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
}

.price-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stock-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Cart Styles */
.cart-item {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control input {
    width: 60px;
    text-align: center;
}

/* Checkout Styles */
.checkout-summary {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 15px;
    position: sticky;
    top: 20px;
}

.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

/* iyzico Form Styles */
.iyzico-form-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

#iyzipay-checkout-form,
.iyzipay-checkout-form,
iframe[src*="iyzipay"],
iframe[src*="iyzi"] {
    width: 100% !important;
    min-width: 800px !important;
    max-width: 1200px !important;
    height: 700px !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    margin: 0 auto !important;
    display: block !important;
}

/* iyzico form responsive */
@media (max-width: 1200px) {
    #iyzipay-checkout-form,
    .iyzipay-checkout-form,
    iframe[src*="iyzipay"],
    iframe[src*="iyzi"] {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    #iyzipay-checkout-form,
    .iyzipay-checkout-form,
    iframe[src*="iyzipay"],
    iframe[src*="iyzi"] {
        height: 600px !important;
    }
    
    .iyzico-form-container {
        padding: 10px !important;
    }
}

/* iyzico Modal Styles */
#iyzico-modal .modal-dialog {
    max-width: 90vw !important;
    width: 1200px !important;
}

#iyzico-modal .modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

#iyzico-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}

#iyzico-modal .modal-title {
    font-weight: 600;
}

#iyzico-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

#iyzico-modal .btn-close:hover {
    opacity: 1;
}

#iyzico-modal .modal-body {
    padding: 0 !important;
    background: #f8f9fa;
}

#iyzico-payment-form {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#iyzico-payment-form iframe {
    width: 100% !important;
    height: 600px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Modal responsive */
@media (max-width: 1200px) {
    #iyzico-modal .modal-dialog {
        max-width: 95vw !important;
        width: 95vw !important;
    }
}

@media (max-width: 768px) {
    #iyzico-modal .modal-dialog {
        max-width: 100vw !important;
        width: 100vw !important;
        margin: 0 !important;
        height: 100vh !important;
    }
    
    #iyzico-modal .modal-content {
        height: 100vh !important;
        border-radius: 0 !important;
    }
    
    #iyzico-modal .modal-body {
        flex: 1;
    }
    
    #iyzico-payment-form iframe {
        height: calc(100vh - 80px) !important;
    }
} 