/* BukyTalk Common Styles */
/* Bu dosya tüm sayfalarda ortak kullanılan CSS stillerini içerir */

:root {
    --primary-color: #FF6B35;
    --secondary-color: #32CD32;
    --accent-color: #FF6B35;
    --dark-color: #2C3E50;
    --light-color: #ffffff;
    --text-color: #2C3E50;
    --border-color: #E8F5E8;
    --shadow: 0 2px 8px rgba(255, 107, 53, 0.1);
    --shadow-lg: 0 8px 25px rgba(255, 107, 53, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Campaign Banner */
.campaign-banner {
    background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    color: white;
    height: 75px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1070;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: bannerGlow 3s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.campaign-banner.hidden {
    transform: translateY(-100%);
}

@keyframes bannerGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 107, 53, 0.25);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 107, 53, 0.4), 0 0 20px rgba(255, 107, 53, 0.3);
    }
}

.banner-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: badgePulse 2s infinite, badgeShake 4s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

@keyframes badgeShake {
    0%, 90%, 100% {
        transform: translateX(0);
    }
    95% {
        transform: translateX(-2px);
    }
    97% {
        transform: translateX(2px);
    }
}

.banner-text {
    font-size: clamp(0.85rem, 2vw, 1rem);
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
    50% {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

@keyframes buttonBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Top Header Bar */
.top-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    height: 60px;
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    z-index: 1060;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.top-header.hidden {
    transform: translateY(-100%);
}

.user-type-selector {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-type {
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.user-type:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

.user-type.active {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.15);
    font-weight: 600;
}

.top-header .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #E55A2B 100%);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: clamp(0.7rem, 1.8vw, 0.85rem);
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite;
}

.top-header .btn-primary::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;
}

.top-header .btn-primary:hover::before {
    left: 100%;
}

.top-header .btn-primary:hover {
    background: linear-gradient(135deg, #E55A2B 0%, var(--primary-color) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    animation: none;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }
}

/* Header & Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 80px;
    top: 135px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1050;
    width: 100%;
    display: flex;
    align-items: center;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-brand img {
    height: 55px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(255, 107, 53, 0.15);
    font-weight: 600;
}

/* Common Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #E55A2B 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E55A2B 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 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="50" cy="50" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.footer>.container {
    position: relative;
    z-index: 1;
}

.footer-logo {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.footer-title {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 3rem 0 2rem 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Navigation */
    .navbar-brand img {
        height: 45px;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 8px;
        background: rgba(255, 107, 53, 0.1);
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover {
        background: rgba(255, 107, 53, 0.2);
        transform: scale(1.05);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 107, 53, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 107, 53, 0.1);
        animation: slideDown 0.3s ease-out;
        position: relative;
        z-index: 1051;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 1.5rem !important;
        margin: 0.3rem 0;
        border-radius: 12px;
        text-align: center;
        font-weight: 600;
        font-size: clamp(0.85rem, 2vw, 1rem);
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(255, 107, 53, 0.1);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background: rgba(255, 107, 53, 0.1);
        border-color: rgba(255, 107, 53, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(50, 205, 50, 0.1) 100%);
        border-color: rgba(255, 107, 53, 0.4);
        color: var(--primary-color) !important;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }
}

/* Responsive Navbar */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .navbar-brand img {
        height: 45px;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 8px;
        background: rgba(255, 107, 53, 0.1);
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover {
        background: rgba(255, 107, 53, 0.2);
        transform: scale(1.05);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 107, 53, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 107, 53, 0.1);
        animation: slideDown 0.3s ease-out;
        position: relative;
        z-index: 1051;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        padding: 1rem 1.5rem !important;
        margin: 0.3rem 0;
        border-radius: 12px;
        text-align: center;
        font-weight: 600;
        font-size: clamp(0.85rem, 2vw, 1rem);
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(255, 107, 53, 0.1);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .nav-link:hover::before {
        left: 100%;
    }

    .nav-link:hover {
        background: rgba(255, 107, 53, 0.1);
        border-color: rgba(255, 107, 53, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(50, 205, 50, 0.1) 100%);
        border-color: rgba(255, 107, 53, 0.4);
        color: var(--primary-color) !important;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 40px;
    }

    /* Top Header Buttons Fix */
    .user-type-selector {
        display: flex;
        gap: 0.3rem;
        align-items: center;
    }

    .user-type {
        padding: 0.3rem 0.6rem;
        font-size: clamp(0.65rem, 1.8vw, 0.75rem);
        font-weight: 600;
        text-align: center;
        border-radius: 4px;
        background: rgba(255, 107, 53, 0.05);
        border: 1px solid rgba(255, 107, 53, 0.1);
        color: #6c757d;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .user-type.active {
        background: rgba(255, 107, 53, 0.15);
        border-color: rgba(255, 107, 53, 0.3);
        color: var(--primary-color);
    }

    .top-header .btn-primary {
        padding: 0.3rem 0.6rem;
        font-size: clamp(0.65rem, 1.8vw, 0.75rem);
        font-weight: 600;
        border-radius: 4px;
    }
}

/* Additional Responsive Media Queries */
@media (max-width: 430px) {
    .campaign-banner {
        height: 75px;
    }
    
    .banner-badge {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
        padding: 0.3rem 1rem;
    }
    
    .banner-text {
        font-size: clamp(0.75rem, 2.5vw, 0.95rem);
    }
    
    .top-header {
        height: 60px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .user-type {
        padding: 0.2rem 0.4rem;
        font-size: clamp(0.6rem, 2vw, 0.7rem);
    }
    
    .btn-discount {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 375px) {
    .campaign-banner {
        height: 75px;
    }
    
    .banner-badge {
        font-size: clamp(0.55rem, 3vw, 0.75rem);
        padding: 0.25rem 0.8rem;
    }
    
    .banner-text {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
    }
    
    .top-header {
        height: 60px;
    }
    
    .navbar-brand img {
        height: 32px;
    }
    
    .user-type {
        padding: 0.15rem 0.3rem;
        font-size: clamp(0.55rem, 2.5vw, 0.65rem);
    }
    
    .btn-discount {
        font-size: clamp(0.55rem, 3vw, 0.75rem);
        padding: 0.15rem 0.4rem;
    }
}
