/* Custom CSS for Sara Belin Website */

:root {
    --primary-color: #d63384;
    --secondary-color: #6f42c1;
    --accent-color: #fd7e14;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

/* Override Bootstrap primary color */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

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

.btn-primary:hover {
    background-color: #b02a5b;
    border-color: #b02a5b;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
	/*
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
	*/
	  position:relative;
	  min-height:100vh;
	  display:flex;
	  align-items:center;
	  /* Optional eigenes Hero-Bild aktivieren:
		 background-image:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)), url('images/hero-bg.jpg'); */
	  /*background-image:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
	  background-image:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55)), url('images/Bittersweet_Romance_Ebook_Cover_ohne_text.webp');*/
	  background-image:linear-gradient(rgba(0,0,0,.75)), url('images/Bittersweet_Romance_Ebook_Cover_ohne_text.webp');
	  background-size:cover;
	  background-position-x: center;
	  background-position-y: -386px;
	  padding: 100px 0 50px;
}

.hero-section-small {
    min-height: 40vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: 76px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.3)"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    padding: 100px 0 50px;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Author Photo */
.author-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
}

/* Book Cards */
.book-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.book-cover {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Sections */
section {
    scroll-margin-top: 80px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .author-photo {
        width: 200px;
        height: 200px;
    }
    
    .book-cover {
        height: 250px;
    }
}

/* Footer */
footer {
    margin-top: 50px;
}

/* Icon styling */
.fas, .far {
    color: inherit;
}

/* Link styling */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Custom button styles */
.btn-lg {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* News cards */
.card-body .fas {
    font-size: 1.2rem;
}

/* Contact section icons */
.fa-2x {
    font-size: 2.5rem !important;
}

/* Hover effects for contact icons */
.text-center .p-3:hover .fas {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Background patterns */
.bg-light {
    background-color: #f8f9fa !important;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="0.5" fill="rgba(214,51,132,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

/* Loading animation for images */
.book-cover, .author-photo {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

/* Text selection */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

