/* Semper Paratus - Custom CSS (do czasu kompilacji SASS) */

/* Top Bar */
.top-bar,
#wrapper-topbar .bg-dark {
  background: #0f1a2e !important;
}

#wrapper-topbar a {
  color: #d4af37;
  text-decoration: none;
}

#wrapper-topbar a:hover {
  color: #f0c852;
}

#topbar-content {
  font-size: 0.9rem;
}

#topbar-content .topbar-left,
#topbar-content .topbar-right {
  display: inline-block;
}

/* Navbar */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a7c 100%);
  color: white;
  padding: 120px 0 80px;
}

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

.hero-section .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a7c 100%) !important;
  border: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2d4a7c 0%, #1a2b4a 100%) !important;
}

.btn-secondary {
  background: linear-gradient(135deg, #d4af37 0%, #f0c852 100%) !important;
  color: #1a2b4a !important;
  border: none !important;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #f0c852 0%, #d4af37 100%) !important;
  color: #1a2b4a !important;
}

.btn-outline-primary {
  color: #1a2b4a;
  border-color: #1a2b4a;
}

.btn-outline-primary:hover {
  background-color: #1a2b4a;
  border-color: #1a2b4a;
  color: white;
}

/* Cards */
.card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

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

.card-header {
  background: linear-gradient(135deg, #1a2b4a 0%, #2d4a7c 100%);
  color: white;
  font-weight: 600;
  padding: 1.5rem;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section.section-dark {
  background: #1a2b4a;
  color: white;
}

.section.section-light {
  background: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #d4af37;
  margin: 1rem auto 0;
}

/* Service Boxes */
.service-box {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.service-box:hover {
  background: #f8f9fa;
  transform: translateY(-5px);
}

.service-box .service-icon {
  font-size: 3rem;
  color: #d4af37;
  margin-bottom: 1.5rem;
}

.service-box h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1a2b4a;
}

/* Stats/Counters */
.stat-box {
  text-align: center;
  padding: 2rem;
}

.stat-box .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #d4af37;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-box .stat-label {
  font-size: 1.1rem;
  color: white;
}

/* Footer */
.site-footer {
  background: #1a2b4a;
  color: white;
  padding: 60px 0 30px;
}

.site-footer h5 {
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: #d4af37;
}

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

.site-footer ul {
  padding-left: 0;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem !important;
  }
  
  #topbar-content .d-flex {
    flex-direction: column;
  }
  
  .topbar-left,
  .topbar-right {
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
}

/* Usuń padding z main */
#theme-main {
  padding: 0 !important;
}

#wrapper-footer-colophon {
  display: none; /* Ukryj domyślny footer */
}

/* Card header icons */
.card-header i {
  font-size: 1.2rem;
  vertical-align: middle;
}

/* Stats icons */
.stat-label i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* CTA section icons */
.section.section-dark h2 i,
.btn i {
  vertical-align: middle;
}

/* Service icon hover animation */
.service-box:hover .service-icon i {
  transform: scale(1.15) rotate(5deg);
  transition: all 0.3s ease;
}

.service-icon i {
  display: inline-block;
  transition: all 0.3s ease;
}


/* Media Page - 2 Column Video Grid */
.video-row {
    margin-bottom: 1.5rem;
}

.video-row .wp-block-column {
    padding: 0 10px;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    min-height: 2.5em;
    line-height: 1.3;
}

.video-row .wp-block-embed {
    margin-bottom: 0;
}

.video-row .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-row .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-row {
        flex-direction: column !important;
    }

    .video-row .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 1.5rem;
    }
}


/* Media Index Page - Month Cards Grid */
.media-month-row {
    margin-bottom: 0.5rem;
}

.media-month-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.month-thumbnail {
    margin-bottom: 10px;
}

.month-thumbnail img {
    border-radius: 6px;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.month-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.month-title a {
    color: #1a2b4a;
    text-decoration: none;
}

.month-title a:hover {
    color: #d4af37;
}

.month-video-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .media-month-row {
        flex-direction: column !important;
    }

    .media-month-row .wp-block-column {
        flex-basis: 100% !important;
        margin-bottom: 1rem;
    }
}
