/* NovelPub Modern Stil Dosyası */

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #5e35b1;
    --primary-light: #7e57c2;
    --primary-dark: #4527a0;
    --secondary-color: #ff6e40;
    --secondary-light: #ff9e80;
    --secondary-dark: #ff3d00;
    --success-color: #43a047;
    --danger-color: #e53935;
    --warning-color: #ffb300;
    --info-color: #039be5;
    --light-color: #f5f5f5;
    --dark-color: #212121;
    --body-bg: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #757575;
    --border-color: #e0e0e0;
    --border-radius: 0.5rem;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Gece Modu */
[data-theme="dark"] {
    --primary-color: #7e57c2;
    --primary-light: #9575cd;
    --primary-dark: #5e35b1;
    --secondary-color: #ff9e80;
    --secondary-light: #ffccbc;
    --secondary-dark: #ff6e40;
    --success-color: #66bb6a;
    --danger-color: #ef5350;
    --warning-color: #ffca28;
    --info-color: #29b6f6;
    --light-color: #424242;
    --dark-color: #121212;
    --body-bg: #121212;
    --card-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #9e9e9e;
    --border-color: #333333;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.4);
}

body {
    font-family: var(--font-family);
    background-color: var(--body-bg);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Scroll Bar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--body-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Navbar Stilleri */
.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    font-weight: 600;
    position: relative;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 50%;
}

.navbar-nav .active > .nav-link {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.navbar-nav .active > .nav-link::after {
    width: 50%;
}

/* Kartlar */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
}

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

.card-img-top {
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-title {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

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

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
}

/* Hikaye Kartları */
.story-card {
    height: 100%;
}

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

/* Featured Card */
.card.featured {
    border-left: 4px solid var(--primary-color);
}

/* Popular Card */
.card.popular {
    border-left: 4px solid var(--secondary-color);
}

/* Butonlar */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::after {
    height: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(94, 53, 177, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(94, 53, 177, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 2px 4px rgba(255, 110, 64, 0.3);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 110, 64, 0.4);
}

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

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

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

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

/* Gece Modu Düğmesi */
.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: var(--transition);
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle .fa-sun {
    display: none;
}

.dark-mode-toggle .fa-moon {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .fa-sun {
    display: block;
}

[data-theme="dark"] .dark-mode-toggle .fa-moon {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.6;
}

.hero .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    margin-right: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 3rem 0 2rem;
    margin-top: auto;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

footer a {
    color: var(--light-color);
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: var(--secondary-light);
    text-decoration: none;
    transform: translateX(5px);
}

footer .social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    margin-bottom: 10px;
}

footer .social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-bottom a:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Form Stilleri */
.form-control {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(94, 53, 177, 0.25);
}

/* Admin Panel Stilleri */
.admin-sidebar {
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    padding-top: 70px;
    z-index: 900;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.admin-sidebar .nav-link {
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
    font-weight: 600;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: rgba(94, 53, 177, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    margin-left: 250px;
    padding: 90px 30px 30px;
    transition: var(--transition);
}

.admin-card {
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    border: none;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.admin-card-header {
    background-color: rgba(94, 53, 177, 0.1);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-stats-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

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

.admin-stats-card .icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.2;
    color: var(--primary-color);
}

.admin-stats-card .title {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.admin-stats-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.admin-stats-card .trend {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.admin-stats-card .trend.up {
    color: var(--success-color);
}

.admin-stats-card .trend.down {
    color: var(--danger-color);
}

.admin-stats-card .trend i {
    margin-right: 5px;
}

/* Kullanıcı Profil Stilleri */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-stats {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.profile-stats-item {
    text-align: center;
    margin: 0 1.5rem;
}

.profile-stats-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-stats-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-actions {
    margin-top: 1.5rem;
}

.profile-actions .btn {
    margin: 0 0.5rem;
}

/* Utilities */
.section-title {
    position: relative;
    margin-bottom: 2rem;
    font-weight: 700;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    border-radius: 50rem;
}

.badge-primary {
    background-color: var(--primary-light);
    color: white;
}

.badge-secondary {
    background-color: var(--secondary-light);
    color: white;
}

.category-pill {
    display: inline-block;
    padding: 0.35em 0.75em;
    border-radius: 50rem;
    background-color: rgba(94, 53, 177, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.category-pill:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive Düzenlemeler */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .admin-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .story-card .card-img-top {
        height: 150px;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .profile-stats-item {
        margin: 0 1rem;
    }
}
