/**
 * CMS Rubi - Custom Styles
 * Dodatkowe style dla front-end
 */

/* ============================================
   GLOBAL STYLES
   ============================================ */

:root {
    --primary-color: #007bff;
    --background-color: #ffffff;
    --text-color: #333333;
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    box-shadow: 0 2px 4px rgb(0, 0, 0);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

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

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.904) 100%);
    z-index: 1;
}

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

/* ============================================
   CARDS
   ============================================ */

.card {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    transition: var(--transition);
}

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

.card-footer {
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    border-radius: var(--border-radius);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   FEATURES
   ============================================ */

.feature-box {
    transition: var(--transition);
    border-radius: var(--border-radius);
    height: 100%;
}

.feature-box:hover {
    background: rgba(0, 0, 0, 0.02);
    transform: translateY(-5px);
}

.feature-icon {
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ============================================
   PAGE CONTENT
   ============================================ */

.page-content {
    font-size: 1.05rem;
}

.page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.page-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

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

.page-content li {
    margin-bottom: 0.75rem;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.page-content a:hover {
    color: color-mix(in srgb, var(--primary-color) 80%, black);
    text-decoration: none;
}

.page-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

/* ============================================
   PAGE GALLERY
   ============================================ */

.page-gallery .image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.page-gallery .image-link::after {
    content: '\F62D';
    /* Bootstrap icon: zoom-in */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.page-gallery .image-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.page-gallery .image-link:hover::before,
.page-gallery .image-link:hover::after {
    opacity: 1;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '\F285';
    /* Bootstrap icon: chevron-right */
    font-family: 'bootstrap-icons';
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    margin-top: auto;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.social-links .btn {
    margin-bottom: 0.5rem;
}

/* ============================================
   COOKIE NOTICE
   ============================================ */

.cookie-notice {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ============================================
   FORMS
   ============================================ */

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    resize: vertical;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border: none;
    border-left: 4px solid;
    border-radius: var(--border-radius);
}

.alert-success {
    border-left-color: #28a745;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #17a2b8;
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

.spinner-border {
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .page-content {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.shadow-hover {
    transition: var(--transition);
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 70%, black) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color) 0%, color-mix(in srgb, var(--primary-color) 70%, black) 100%) 1;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {

    .navbar,
    .footer,
    .cookie-notice,
    #backToTop {
        display: none !important;
    }

    .page-content {
        font-size: 12pt;
    }

    a {
        text-decoration: none;
        color: black;
    }
}