/* Global Styles */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7463A;
    --success-color: #4bb543;
    --info-color: #4895ef;
    --warning-color: #f9c74f;
    --danger-color: #E63946;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero img {
    animation: fadeIn 1s ease-out;
}

/* Campaign Cards - Modern design matching my-campaigns.php */
.campaign-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 400px;
    margin-bottom: 1.5rem;
}

.campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.campaign-card .campaign-image {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    overflow: hidden;
}

.campaign-card .campaign-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

.campaign-card:hover .campaign-image img {
    transform: scale(1.05);
}

.campaign-card .campaign-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.campaign-card .restaurant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.campaign-card .restaurant-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.campaign-card .restaurant-info h3,
.campaign-card .restaurant-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.campaign-card .restaurant-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 14px;
    margin-top: 2px;
}

.campaign-card .campaign-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.campaign-card .campaign-description {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-card .campaign-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
}

.campaign-card .campaign-meta i {
    color: #FF6B35;
    font-size: 14px;
}

.campaign-card .campaign-footer {
    margin-top: auto;
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

.campaign-card .pro-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FF6B35;
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(220,53,69,0.2);
}

.campaign-card .campaign-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #FF6B35;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 2px 8px rgba(220,53,69,0.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .campaign-card {
        min-height: 350px;
        margin-bottom: 1rem;
    }
    
    .campaign-card .campaign-image {
        height: 140px;
    }
    
    .campaign-card .campaign-content {
        padding: 16px;
    }
    
    .campaign-card .restaurant-logo {
        width: 32px;
        height: 32px;
    }
    
    .campaign-card .restaurant-name {
        font-size: 14px;
    }
    
   
    
    .campaign-card .campaign-description {
        font-size: 13px;
    }
    
    .campaign-card .pro-badge {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .campaign-card .campaign-badge {
        top: 8px;
        left: 8px;
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* Search and Filter */
.input-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.input-group-text {
    background-color: white;
    border: none;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-danger {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-danger:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #eee;
}

/* Empty State */
#emptyState {
    animation: fadeIn 0.5s ease-out;
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0;
}

.bottom-nav .nav-link {
    color: #6c757d;
    font-size: 0.875rem;
    text-align: center;
    padding: 8px;
    transition: color 0.3s ease;
}

.bottom-nav .nav-link.active {
    color: var(--primary-color);
}

.bottom-nav .nav-link i {
    font-size: 1.25rem;
    display: block;
    margin-bottom: 4px;
}

/* Responsive Rules */
@media (max-width: 991.98px) {
    .login-container{
        min-height: 100vh!important;
    }
    .register-container{
        min-height: 100vh!important;
    }
    /* Header için mobil düzenlemeler */
    .navbar-brand {
        margin: 0 auto;
    }
    
    .navbar .btn,
    .navbar .nav-item:not(.navbar-brand) {
        display: none;
    }

    /* Bottom navigation sadece mobilde göster */
    .bottom-nav {
        display: flex;
    }

    /* İçeriği bottom nav için ayarla */
    body {
        padding-bottom: 70px;
    }
}

/* Tablet ve masaüstünde bottom nav gizle */
@media (min-width: 992px) {
    .bottom-nav {
        display: none !important;
    } 
}

/* Reklam Alanı Stilleri - Trendyol Go Tarzı */
.ad-banner-container {
    margin: 1.5rem auto;
    max-width: 1320px;
    padding: 0 20px;
}

.ad-banner-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-banner-wrapper:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.2);
}

.ad-banner-content {
    background: linear-gradient(135deg, #FF6B35 0%, #F7463A 50%, #E63946 100%);
    position: relative;
    padding: 1rem;
    min-height: 80px;
}

.ad-banner-gradient {
    position: relative;
    z-index: 2;
}

.ad-banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ad-banner-wrapper:hover .ad-banner-content::before {
    opacity: 1;
}

.ad-text-content {
    color: white;
    z-index: 3;
    position: relative;
}

.ad-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: white;
    line-height: 1.2;
}

.ad-description {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    line-height: 1.3;
}

.ad-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.ad-action {
    position: relative;
    z-index: 3;
}

.ad-cta-btn {
    font-weight: 600;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
}

.ad-cta-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.ad-small-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Mobile Responsive Design - Trendyol Go Tarzı */
@media (max-width: 768px) {
    .ad-banner-content {
        padding: 0.75rem;
        min-height: 60px;
    }
    
    .ad-title {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .ad-description {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
        line-height: 1.2;
    }
    
    .ad-features {
        justify-content: flex-start;
        gap: 0.2rem;
    }
    
    .feature-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.4rem;
    }
    
    .ad-cta-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.7rem;
        border-radius: 15px;
    }
    
    .ad-small-text {
        font-size: 0.6rem;
        margin-top: 0.15rem;
    }
    
    /* Mobilde yan yana düzen için row düzenlemesi */
    .ad-banner-content .row {
        margin: 0;
        min-height: inherit;
    }
    
    .ad-banner-content .col-md-8,
    .ad-banner-content .col-md-4,
    .ad-banner-content .col-8,
    .ad-banner-content .col-4 {
        padding: 0;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .ad-banner-content {
        padding: 0.5rem;
        min-height: 50px;
    }
    
    .ad-title {
        font-size: 0.8rem;
    }
    
    .ad-description {
        font-size: 0.65rem;
    }
    
    .feature-badge {
        font-size: 0.55rem;
        padding: 0.05rem 0.3rem;
    }
    
    .ad-cta-btn {
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .ad-small-text {
        font-size: 0.55rem;
    }
}

/* Desktop için biraz daha kompakt */
@media (min-width: 769px) {
    .ad-banner-content {
        padding: 1.2rem;
        min-height: 90px;
    }
    
    .ad-title {
        font-size: 1.2rem;
    }
    
    .ad-description {
        font-size: 0.9rem;
    }
}

/* Profile Sidebar Styles */
.profile-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.profile-sidebar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    text-align: center;
    color: white;
}

.profile-avatar {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
}

.profile-email {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    word-break: break-word;
}

.profile-nav {
    padding: 0.5rem 0;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    background: none;
    position: relative;
}

.profile-nav-item:hover {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.profile-nav-item.active {
    background: #e7f3ff;
    color: #0056b3;
    border-right: 3px solid #007bff;
}

.profile-nav-item i {
    font-size: 1.1rem;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.profile-nav-item span {
    font-weight: 500;
}

.profile-nav-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 1.5rem;
}

/* Profile Content */
.profile-content {
    padding: 1.5rem;
}

.profile-page-header {
    margin-bottom: 2rem;
}

.profile-page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.profile-page-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Card improvements */
.card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
}

.card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

/* Form improvements */
.form-floating > label {
    color: #6c757d;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert improvements */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
}

/* Statistics Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-info {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.card.bg-primary:hover,
.card.bg-success:hover,
.card.bg-info:hover {
    transform: translateY(-2px);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .profile-content {
        padding: 1rem;
    }
    
    .profile-page-title {
        font-size: 1.5rem;
    }
    
    body {
        padding-bottom: 85px;
    }
}

/* Fix margin issues */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.card-title,
.profile-page-title,
.profile-name {
    margin-bottom: 0.5rem !important;
}

/* Breadcrumb improvements */
.breadcrumb {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Settings Page Styles */
.info-item {
    margin-bottom: 1rem;
}

.info-item label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
    margin-bottom: 0;
    padding: 0.375rem 0;
}

.info-value .badge {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Table improvements */
.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* Status badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

/* Map Pin Improvements */
.gm-style .gm-style-iw-c {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

/* Map Pin Custom Styling */
.map-pin-container {
    position: relative;
    width: 48px;
    height: 48px;
}

.map-pin-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-align: center;
}



.map-pin-discount {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
