/* Custom styles for campaign app */

/* Map marker styles */
.map-marker {
    position: relative;
    padding: 8px 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.map-marker::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

/* Campaign card styles - 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;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 400px;
}

.campaign-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.campaign-image {
    position: relative;
    width: 100%;
    height: 160px;
    background: #f8f9fa;
    overflow: hidden;
}

.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-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.restaurant-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.restaurant-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.restaurant-info h3,
.restaurant-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 14px;
    margin-top: 2px;
}

.campaign-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.4;
}

.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-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
}

.campaign-meta i {
    color: #FF6B35;
    font-size: 14px;
    margin-right: 0.25rem;
}

.campaign-footer {
    margin-top: auto;
    border-top: 1px solid #e9ecef;
    padding-top: 16px;
}

/* PRO Badge */
.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);
}

.pro-badge i {
    font-size: 12px;
    color: white;
}

/* Discount Badge */
.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);
}

.discount-amount {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.discount-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #E91E63;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(233,30,99,0.3);
}

/* Info window styles */
.info-window {
    padding: 12px;
    max-width: 300px;
}

.info-window .logo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-window .title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.info-window .address {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.info-window .details {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 8px 0;
}

.info-window .stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.info-window .action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* Bottom navigation */
.bottom-nav {
    transition: transform 0.3s ease;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

@media (max-width: 991.98px) {
    .bottom-nav {
        display: block;
    }
}

.bottom-nav.nav-down {
    transform: translateY(100%);
}

.bottom-nav-link {
    color: var(--dark-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    gap: 0.25rem;
    transition: all 0.2s ease;
    position: relative;
    isolation: isolate;
}

.bottom-nav-link i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.bottom-nav-link:hover i {
    transform: scale(1.1);
}

.bottom-nav-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: -1;
    border-radius: 8px;
}

.bottom-nav-link:hover::after {
    opacity: 0.1;
}

.bottom-nav-link.active {
    color: var(--primary-color);
}

.bottom-nav-link.active::after {
    opacity: 0.15;
}

/* Navigation and Animation Styles */
.navbar {
    transition: transform 0.3s ease;
}

.navbar.nav-up {
    transform: translateY(-100%);
}

/* Campaign detail modal */
.campaign-modal .discount-badge {
    font-size: 2rem;
    font-weight: 700;
    padding: 16px 24px;
    border-radius: 12px;
    background: #FF6B35;
    color: #fff;
    display: inline-block;
    margin-bottom: 16px;
}

.campaign-modal .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}

.campaign-modal .stat-box {
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
}

.campaign-modal .stat-box i {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.3s ease-out forwards;
}

/* Empty State */
.empty-state {
    padding: 2rem;
    text-align: center;
}

.empty-state img {
    max-width: 200px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Campaign Info Window */
.campaign-info {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.campaign-info .campaign-image {
    padding-top: 50%;
}

.campaign-info .campaign-content {
    padding: 1.5rem;
}

.campaign-info .campaign-title {
    font-size: 1.4rem;
}

.campaign-info .campaign-description {
    font-size: 1rem;
    -webkit-line-clamp: initial;
}

.campaign-info .btn {
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Verification code styles */
.verification-code {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px dashed #dee2e6;
}

.code-display {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.verification-popup .alert {
    margin: 1rem -1rem -1rem -1rem;
    border-radius: 0 0 12px 12px;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

/* Accessibility Improvements */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Enhanced button animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.btn:hover::after {
    opacity: 0.1;
}

/* Modal animations */
.modal.fade .modal-dialog {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive typography */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .bottom-nav-link {
        font-size: 0.75rem;
    }
    
    .bottom-nav-link i {
        font-size: 1.1rem;
    }
}

/* Giriş/Kayıt sayfası stilleri */
.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.auth-card .form-floating>.form-control {
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    padding: 1rem 0.75rem;
}

.auth-card .form-floating>.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(33, 150, 243, 0.1);
}

.auth-card .form-floating>label {
    padding: 1rem 0.75rem;
}

.auth-card .btn-primary {
    border-radius: 10px;
    padding: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.auth-card .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-card a {
    color: var(--primary-color);
}

.auth-card a:hover {
    color: #1976D2;
}

.auth-card .alert {
    border-radius: 10px;
    border: none;
}

.auth-card .form-check-label a {
    text-decoration: none;
}

/* Campaign list styles */
.campaigns-container {
    padding: 1rem;
}

.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.search-container {
    background: white;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 100%;
}

.search-input {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    background: #f8f9fa;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.15rem rgba(0,123,255,.15);
    background: white;
}

.search-bar .form-check {
    margin: 0;
    white-space: nowrap;
}

.search-bar .form-check-label {
    font-size: 0.85rem;
    margin-left: 0.4rem;
    font-weight: 500;
}

.filter-button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.filter-button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Desktop specific adjustments */
@media (min-width: 992px) {
    .search-container {
        padding: 0.625rem 1.25rem;
        margin-bottom: 1.5rem;
        max-width: 1140px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .search-input {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .search-bar .form-check-label {
        font-size: 0.875rem;
    }
    
    .filter-button {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .search-container {
        position: static !important;
        z-index: 1 !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        z-index: 1050 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    }
    main {
        padding-bottom: 85px !important;
    }
}

@media (max-width: 400px) {
    .search-container {
        position: static !important;
        z-index: 1 !important;
        margin-bottom: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        z-index: 1050 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1) !important;
    }
    main {
        padding-bottom: 85px !important;
    }
}

.search-bar, .filter-button {
    z-index: 1 !important;
}



/* Ensure filter modal is above everything */
.modal {
    z-index: 1055;
}

/* Restaurant Info Popup */
.restaurant-info-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
    max-width: 300px;
    min-width: 250px;
    animation: popupFadeIn 0.2s ease-out;
    overflow: hidden;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.popup-header {
    background: #FF6B35;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.popup-header i {
    font-size: 16px;
}

.popup-header strong {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 2px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.popup-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.popup-content {
    padding: 16px;
}

.address-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.4;
}

.address-info i {
    color: #FF6B35;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.address-info span {
    word-break: break-word;
}
