/* HappyAnne - Ana CSS Dosyası */
/* Türkçe karakter desteği ve mobil uyumluluk */

:root {
    --primary-color: #ff6b9d;
    --primary-dark: #e91e63;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #fafafa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --border-radius: 12px;
    --border-radius-sm: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0.8rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand i {
    margin-right: 8px;
    color: var(--accent-color);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.15);
}

.nav-link i {
    margin-right: 5px;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 0.7rem 1.2rem;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--secondary-color) 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons .btn {
    margin: 0.5rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    background: var(--bg-white);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

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

.card-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-light);
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.category-card .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.8rem;
}

.category-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 157, 0.4);
}

.btn-outline-light {
    border: 2px solid white;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* HoneyBaby Auth Pages - Split Layout */
.auth-split-container {
    min-height: 100vh;
    display: flex;
}

.auth-brand-side {
    flex: 1;
    background: linear-gradient(135deg, #FFB347 0%, #FFCC33 50%, #FFE082 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: honeyGlow 8s ease-in-out infinite;
}

@keyframes honeyGlow {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.auth-brand-content {
    text-align: center;
    color: #5D4037;
    z-index: 1;
}

.auth-brand-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: honeyDrip 3s ease-in-out infinite;
}

@keyframes honeyDrip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-brand-name {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -2px;
}

.auth-brand-name span {
    color: #E65100;
}

.auth-slogan {
    font-size: 1.8rem;
    font-weight: 500;
    font-style: italic;
    margin-top: 1rem;
    color: #8D6E63;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.auth-slogan::before {
    content: '"';
    font-size: 3rem;
    color: #E65100;
    opacity: 0.5;
}

.auth-slogan::after {
    content: '"';
    font-size: 3rem;
    color: #E65100;
    opacity: 0.5;
}

.auth-honey-decoration {
    position: absolute;
    bottom: 50px;
    font-size: 8rem;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-color);
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
}

@media (max-width: 991.98px) {
    .auth-split-container {
        flex-direction: column;
    }
    
    .auth-brand-side {
        min-height: 40vh;
        padding: 2rem;
    }
    
    .auth-brand-name {
        font-size: 2.5rem;
    }
    
    .auth-slogan {
        font-size: 1.2rem;
    }
    
    .auth-brand-icon {
        font-size: 4rem;
    }
    
    .auth-form-side {
        padding: 1.5rem;
    }
    
    .auth-card {
        max-width: 500px;
        padding: 2rem;
    }
}

.auth-card .card-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Forum Styles */
.forum-category {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.forum-category h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.forum-category p {
    color: var(--text-light);
    margin-bottom: 0;
}

.forum-topic {
    background: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.forum-topic:hover {
    border-left-color: var(--primary-dark);
    transform: translateX(5px);
}

.forum-topic.pinned {
    border-left-color: var(--accent-color);
    background: linear-gradient(90deg, rgba(255,230,109,0.1) 0%, var(--bg-white) 100%);
}

.topic-title {
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
}

.topic-title:hover {
    color: var(--primary-color);
}

.topic-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Badges */
.badge-pill {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-newbie { background-color: #28a745; color: white; }
.badge-active { background-color: #6c757d; color: white; }
.badge-experienced { background-color: #17a2b8; color: white; }
.badge-super { background-color: #ffc107; color: #333; }
.badge-star { background-color: #dc3545; color: white; }
.badge-helper { background-color: #e83e8c; color: white; }
.badge-admin { background-color: #6f42c1; color: white; }

/* User Avatar */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-avatar-lg {
    width: 80px;
    height: 80px;
}

/* Shopping Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-card .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-card .original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
}

.rating {
    color: var(--accent-color);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #26a69a 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.newsletter-section h3 {
    margin-bottom: 1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    background: white;
    border-radius: 50px;
    overflow: hidden;
    padding: 0.3rem;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.8rem 1.5rem;
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* Admin Panel */
.admin-sidebar {
    background: #2c3e50;
    min-height: calc(100vh - 60px);
    padding: 1.5rem 0;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: white !important;
}

.admin-content {
    padding: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Tables */
.table-admin {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-admin th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    border: none;
}

.table-admin td {
    vertical-align: middle;
}

/* AI Chat */
.ai-chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    display: none;
    flex-direction: column;
}

.ai-chat-container.active {
    display: flex;
}

.ai-chat-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    max-height: 350px;
}

.ai-message {
    background: var(--bg-color);
    padding: 0.8rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.ai-message.user {
    background: var(--primary-color);
    color: white;
    margin-left: 2rem;
}

.ai-chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.ai-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-hover);
    z-index: 999;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-chat-button:hover {
    transform: scale(1.1);
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--text-color);
    padding: 0.6rem 1rem;
    margin: 0 0.2rem;
    border-radius: var(--border-radius-sm);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(0,0,0,0.1);
        border-radius: var(--border-radius);
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none !important;
        background: rgba(255,255,255,0.1) !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0.5rem 0 !important;
        display: none !important;
        transition: all 0.3s ease;
        width: 100% !important;
        left: 0 !important;
        top: auto !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
        position: relative !important;
        background: rgba(255,255,255,0.15) !important;
        border-radius: var(--border-radius-sm);
        padding: 0.5rem 0 !important;
        margin-top: 0.5rem !important;
    }
    
    .dropdown-item {
        padding: 0.8rem 1.5rem !important;
        color: white !important;
        background: transparent !important;
        border-radius: var(--border-radius-sm);
        margin: 0.1rem 0.5rem !important;
        transition: all 0.2s ease;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        line-height: 1.5 !important;
    }
    
    .dropdown-item:hover {
        background: rgba(255,255,255,0.25) !important;
        color: white !important;
        transform: none !important;
    }
    
    .dropdown-divider {
        border-color: rgba(255,255,255,0.2) !important;
        margin: 0.5rem 1rem !important;
        clear: both !important;
    }
    
    .dropdown-toggle {
        cursor: pointer !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }
    
    .navbar-nav .dropdown {
        position: relative !important;
        clear: both !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Hide Rehberler dropdown on mobile */
    .navbar-nav .dropdown:first-child {
        display: none !important;
    }
    
    .navbar-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none !important;
        background: rgba(255,255,255,0.1) !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0.25rem 0 !important;
        display: none !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        left: 0 !important;
        top: auto !important;
        float: none !important;
        border-radius: var(--border-radius-sm) !important;
        overflow: visible !important;
        z-index: 1000 !important;
    }
    
    .navbar-nav .dropdown-menu.show {
        display: block !important;
        position: relative !important;
        background: rgba(255,255,255,0.15) !important;
        border-radius: var(--border-radius-sm) !important;
        padding: 0.5rem 0 !important;
        margin-top: 0.25rem !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.8rem 1.5rem !important;
        color: white !important;
        background: transparent !important;
        border-radius: var(--border-radius-sm) !important;
        margin: 0.1rem 0.5rem !important;
        transition: all 0.2s ease !important;
        display: block !important;
        width: 100% !important;
        clear: both !important;
        line-height: 1.4 !important;
        text-decoration: none !important;
        font-size: 0.9rem !important;
        white-space: nowrap !important;
    }
    
    .navbar-nav .dropdown-item:hover,
    .navbar-nav .dropdown-item:focus {
        background: rgba(255,255,255,0.25) !important;
        color: white !important;
        transform: none !important;
        text-decoration: none !important;
        outline: none !important;
    }
    
    .navbar-nav .dropdown-divider {
        border-color: rgba(255,255,255,0.2) !important;
        margin: 0.5rem 1rem !important;
        clear: both !important;
        height: 1px !important;
        background: rgba(255,255,255,0.2) !important;
    }
    
    .navbar-nav .dropdown-toggle {
        cursor: pointer !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
        outline: none !important;
        text-decoration: none !important;
    }
    
    .navbar-nav .dropdown.show > .dropdown-toggle {
        background: rgba(255,255,255,0.1) !important;
        border-radius: var(--border-radius-sm) !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .admin-sidebar {
        min-height: auto;
        padding: 0.5rem 0;
    }
    
    /* Form check improvements for mobile */
    .form-check {
        padding-left: 0;
        margin-bottom: 1rem;
    }
    
    .form-check-input {
        margin-right: 0.5rem;
        margin-left: 0;
    }
    
    .form-check-label {
        font-size: 0.9rem;
        line-height: 1.4;
        display: inline;
        padding-left: 0;
    }
    
    .auth-card {
        max-width: 500px;
        padding: 2rem;
        margin: 0 auto;
    }
    
    .input-group .btn {
        flex: 0 0 auto;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 0 1rem;
        max-width: 100%;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .forum-category {
        padding: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .ai-chat-container {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
    
    /* Mobile form improvements */
    .auth-form-side {
        padding: 1rem;
    }
    
    .form-check {
        margin-bottom: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Additional mobile optimizations */
    .auth-card {
        padding: 1rem;
        margin: 0 0.5rem;
        border-radius: var(--border-radius);
    }
    
    .form-check-label {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .text-center p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Better touch targets */
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-lg {
        min-height: 48px;
        font-size: 1rem;
    }
    
    .input-group .btn {
        min-height: 44px;
    }
    
    /* Better spacing */
    .mb-3 {
        margin-bottom: 1.25rem !important;
    }
    
    .g-3 > * {
        padding-bottom: 0.75rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Content Styles */
.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.content-area p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-area ul,
.content-area ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-area li {
    margin-bottom: 0.5rem;
}

.content-area img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .ai-chat-button,
    .ai-chat-container {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
    }
}
