/* 
* Main Stylesheet for Mateřská Školka Website
* A modern, child-friendly design with light colors
*/

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

@keyframes wiggle {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.wiggle-animation {
    animation: wiggle 4s ease-in-out infinite;
}

.bounce-animation {
    animation: bounce 2s ease-in-out infinite;
}

/* ---------- General Styles ---------- */
:root {
    --primary-color: #4EBFE9; /* Light blue - main color */
    --secondary-color: #F9B233; /* Warm orange/yellow - accent color */
    --tertiary-color: #7FD2A3; /* Soft green */
    --light-color: #FFFFFF;
    --light-grey: #F5F5F5;
    --dark-color: #333333;
    --font-main: 'Nunito', sans-serif;
    --font-headings: 'Quicksand', sans-serif;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    background-color: var(--light-color);
    background-image: url('../images/pattern-bg-solid.svg');
    background-attachment: fixed;
    background-size: 1000px;
    background-position: center;
    line-height: 1.6;
}

.content-wrapper {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    margin: 20px auto;
    padding: 30px 20px;
    box-shadow: var(--shadow);
    position: relative;
    max-width: 1400px;
    overflow: hidden;
}

.content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--tertiary-color), var(--primary-color));
    background-size: 300% 100%;
    animation: gradient-move 8s linear infinite;
}

@keyframes gradient-move {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    box-shadow: 0 4px 0 #3aa8d0;
    position: relative;
    top: 0;
}

.btn-primary:hover {
    background-color: #3aa8d0;
    border-color: #3aa8d0;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #3aa8d0;
}

.btn-primary:active {
    top: 4px;
    box-shadow: 0 0 0 #3aa8d0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    box-shadow: 0 4px 0 #e9a322;
    position: relative;
    top: 0;
}

.btn-secondary:hover {
    background-color: #e9a322;
    border-color: #e9a322;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #e9a322;
}

.btn-secondary:active {
    top: 4px;
    box-shadow: 0 0 0 #e9a322;
}

/* Child-friendly Elements */
.child-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 10px;
    vertical-align: middle;
}

.child-section-title {
    position: relative;
    padding-left: 60px;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.child-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Dětské karty pro sekce */
.child-card {
    background-color: var(--light-color);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 25px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.child-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background-image: url('../images/corner-decoration.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
    z-index: 0;
    opacity: 0.3;
}

.child-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.child-card .card-body {
    position: relative;
    z-index: 1;
}

.child-card .card-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Dětské tabulky */
.child-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.child-table thead {
    background-color: var(--primary-color);
    color: white;
}

.child-table th {
    font-weight: 700;
}

.child-table th, 
.child-table td {
    padding: 15px;
}

.child-table tbody tr:nth-child(odd) {
    background-color: rgba(78, 191, 233, 0.1);
}

.child-table tbody tr:hover {
    background-color: rgba(78, 191, 233, 0.2);
}

/* Dětské záložky */
.child-tabs .nav-link {
    border-radius: 15px 15px 0 0;
    padding: 12px 20px;
    font-weight: 600;
    color: var(--dark-color);
    border: 2px solid transparent;
    margin-right: 5px;
    position: relative;
    overflow: hidden;
}

.child-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.child-tabs .nav-link.active,
.child-tabs .nav-link:hover {
    border-bottom: none;
    color: var(--primary-color);
}

.child-tabs .nav-link.active::before,
.child-tabs .nav-link:hover::before {
    background-color: var(--secondary-color);
}

.child-tabs .tab-content {
    border: 2px solid #dee2e6;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    background-color: white;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ---------- Navbar ---------- */
.navbar {
    background-color: var(--light-color);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: all 0.4s ease;
}

.navbar-brand {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 15px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .active .nav-link::after {
    width: calc(100% - 30px);
}

.navbar-light .navbar-toggler {
    border: none;
}

.navbar-light .navbar-toggler:focus {
    box-shadow: none;
}

/* ---------- Hero Section ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
    color: var(--light-color);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="white" opacity="0.1" d="M0 100V20L100 0v80L0 100z"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* ---------- Features Section ---------- */
.feature-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* ---------- About Section ---------- */
.about-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-content h2 {
    margin-bottom: 25px;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid var(--light-color);
    box-shadow: var(--shadow);
}

.team-member-img-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 5px solid var(--light-color);
    box-shadow: var(--shadow);
}

.team-member h5 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.team-member .position {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
}

.team-member p {
    flex-grow: 1;
    margin-bottom: 15px;
}

.staff-contact {
    margin-top: auto;
}

/* ---------- Gallery ---------- */
.gallery-item {
    position: relative;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    padding: 20px;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.gallery-overlay h4 {
    margin-bottom: 5px;
}

.gallery-detail .gallery-img {
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

/* ---------- Blog ---------- */
.blog-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

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

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-content {
    padding: 20px;
}

.blog-meta {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #777;
}

.blog-title {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.blog-excerpt {
    margin-bottom: 20px;
}

/* ---------- Contact ---------- */
.contact-info {
    background: var(--light-grey);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-form {
    background: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 30px;
}

.footer-logo {
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--light-color);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-social a {
    color: var(--light-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer h5 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Admin Styles ---------- */
.admin-sidebar {
    background: var(--dark-color);
    color: var(--light-color);
    height: 100%;
    min-height: 100vh;
    padding: 20px 0;
}

.admin-menu {
    list-style: none;
    padding: 0;
}

.admin-menu li {
    padding: 10px 20px;
    margin-bottom: 5px;
}

.admin-menu li a {
    color: rgba(255, 255, 255, 0.8);
    display: block;
    transition: all 0.3s ease;
}

.admin-menu li.active,
.admin-menu li:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--secondary-color);
}

.admin-menu li.active a,
.admin-menu li:hover a {
    color: var(--light-color);
}

.admin-content {
    padding: 20px;
}

.admin-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.dashboard-card {
    text-align: center;
    padding: 30px 20px;
}

.dashboard-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dashboard-count {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ---------- Quill Editor Styling ---------- */
.ql-editor {
    min-height: 300px;
    font-family: var(--font-main);
    font-size: 1rem;
}

.ql-toolbar.ql-snow {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-color: #ddd;
    background-color: #f8f9fa;
}

.ql-container.ql-snow {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-color: #ddd;
}

.ql-editor h1, .ql-editor h2, .ql-editor h3, 
.ql-editor h4, .ql-editor h5, .ql-editor h6 {
    font-family: var(--font-headings);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.ql-editor p {
    margin-bottom: 1rem;
}

.ql-editor ul, .ql-editor ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.ql-snow .ql-tooltip {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* ---------- Responsive Styles ---------- */
@media (max-width: 992px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .navbar-light .navbar-nav .nav-link::after {
        display: none;
    }
    
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .admin-sidebar {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
}
