/*
Theme Name: FotoDogOne
Theme URI: https://example.com/fotodogone
Author: Your Name
Author URI: https://example.com
Description: Современная тема-лендинг для WordPress с пятью блоками на Bootstrap 5
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fotodogone
*/

/* === CSS Variables === */
:root {
  --fdo-primary: #0f766e;
  --fdo-primary-dark: #0d5d57;
  --fdo-secondary: #14b8a6;
  --fdo-accent: #f59e0b;
}

[data-bs-theme="light"] {
  --bs-body-bg: #ffffff;
  --bs-body-color: #0f172a;
  --fdo-muted: #f1f5f9;
  --fdo-muted-fg: #64748b;
  --fdo-border: #e2e8f0;
  --fdo-card-bg: #ffffff;
  --fdo-header-bg: rgba(255, 255, 255, 0.95);
  --fdo-footer-bg: #0f172a;
  --fdo-footer-color: rgba(255, 255, 255, 0.7);
}

[data-bs-theme="dark"] {
  --bs-body-bg: #0f172a;
  --bs-body-color: #e2e8f0;
  --fdo-muted: #1e293b;
  --fdo-muted-fg: #94a3b8;
  --fdo-border: #334155;
  --fdo-card-bg: #1e293b;
  --fdo-header-bg: rgba(15, 23, 42, 0.95);
  --fdo-footer-bg: #020617;
  --fdo-footer-color: rgba(255, 255, 255, 0.6);
}

/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

a {
  text-decoration: none;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--fdo-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fdo-border);
  z-index: 1030;
  padding: 0.75rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--bs-body-color);
}

.logo-link:hover {
  color: var(--bs-body-color);
}

.site-logo {
  height: 36px;
  width: auto;
  color: var(--fdo-secondary);
}

.site-logo svg {
  height: 100%;
  width: auto;
  display: block;
}

.site-name {
  font-size: 1.15rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .site-name {
    display: none;
  }
}

.header-cta {
  background: var(--fdo-primary);
  border-color: var(--fdo-primary);
}

.header-cta:hover {
  background: var(--fdo-primary-dark);
  border-color: var(--fdo-primary-dark);
}

/* === Blocks Common === */
.block-section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(15, 118, 110, 0.1);
  color: var(--fdo-primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--fdo-muted-fg);
}

/* === Block 1: Hero === */
.block-hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  background: linear-gradient(180deg, var(--fdo-muted) 0%, var(--bs-body-bg) 100%);
}

.hero-title {
  font-weight: 800;
  line-height: 1.1;
}

.hero-title .highlight {
  color: var(--fdo-primary);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--fdo-muted-fg);
  line-height: 1.7;
}

.btn-primary-custom {
  background: var(--fdo-primary);
  border-color: var(--fdo-primary);
  color: #fff;
}

.btn-primary-custom:hover {
  background: var(--fdo-primary-dark);
  border-color: var(--fdo-primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-custom {
  border: 2px solid var(--fdo-border);
  color: var(--bs-body-color);
}

.btn-outline-custom:hover {
  border-color: var(--fdo-primary);
  color: var(--fdo-primary);
  background: transparent;
}

/* === Block 2: Page Cards === */
.block-cards {
  background: var(--bs-body-bg);
}

.page-card {
  background: var(--fdo-card-bg);
  border: 1px solid var(--fdo-border);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s;
}

.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--fdo-primary);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(15, 118, 110, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--fdo-primary);
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--fdo-muted-fg);
  margin-bottom: 1.25rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fdo-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.page-card:hover .card-link svg {
  transform: translateX(4px);
}

/* === Block 3: Features === */
.block-features {
  background: var(--fdo-muted);
}

.features-image img {
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--fdo-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.feature-text h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-text p {
  color: var(--fdo-muted-fg);
  margin-bottom: 0;
}

/* === Block 4: Carousel === */
.block-carousel {
  background: var(--bs-body-bg);
}

.carousel-item {
  padding: 2rem 0;
}

.carousel-slide {
  background: var(--fdo-card-bg);
  border: 1px solid var(--fdo-border);
  border-radius: 0.75rem;
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.carousel-quote {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.carousel-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fdo-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--fdo-primary);
  font-size: 1.1rem;
}

.author-info h5 {
  margin-bottom: 0.125rem;
  font-weight: 600;
}

.author-info p {
  color: var(--fdo-muted-fg);
  margin-bottom: 0;
  font-size: 0.9rem;
}

.carousel-control-prev,
.carousel-control-next {
  width: 48px;
  height: 48px;
  background: var(--fdo-primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: 1rem;
}

.carousel-control-next {
  right: 1rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--fdo-primary-dark);
}

.carousel-indicators {
  position: relative;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fdo-border);
  border: none;
  margin: 0 0.25rem;
}

.carousel-indicators button.active {
  background: var(--fdo-primary);
}

@media (max-width: 767.98px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }
}

/* === Block 5: CTA === */
.block-cta {
  background: var(--fdo-primary);
}

.block-cta .cta-title {
  color: white;
}

.block-cta .cta-description {
  color: rgba(255, 255, 255, 0.85);
}

.block-cta .form-control {
  border: none;
  padding: 1rem 1.25rem;
}

.block-cta .form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.5);
}

.btn-white {
  background: white;
  color: var(--fdo-primary);
  font-weight: 600;
}

.btn-white:hover {
  background: var(--fdo-muted);
  color: var(--fdo-primary);
}

/* === Footer === */
.site-footer {
  background: var(--fdo-footer-bg);
  color: var(--fdo-footer-color);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-brand .logo-link {
  color: white;
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer-brand p {
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  color: white;
}

.social-links a:hover {
  background: var(--fdo-primary);
  color: white;
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-links h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--fdo-footer-color);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

/* === Theme Switcher === */
.theme-switcher .dropdown-toggle::after {
  display: none;
}

.theme-switcher .dropdown-menu {
  min-width: 8rem;
}

.theme-icon-active {
  width: 1em;
  height: 1em;
}

/* === Gallery Page === */
.gallery-page .block-upload {
  background: var(--fdo-muted);
}

.upload-dropzone {
  border: 2px dashed var(--fdo-border);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--fdo-card-bg);
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--fdo-primary);
  background: rgba(15, 118, 110, 0.05);
}

.dropzone-icon {
  color: var(--fdo-primary);
  margin-bottom: 1rem;
}

.dropzone-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.dropzone-hint {
  color: var(--fdo-muted-fg);
  margin-bottom: 0.5rem;
}

.dropzone-formats {
  font-size: 0.85rem;
  color: var(--fdo-muted-fg);
  margin-bottom: 0;
}

.preview-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 1;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Grid */
.block-gallery {
  background: var(--bs-body-bg);
}

.gallery-item {
  perspective: 1000px;
}

.gallery-link {
  display: block;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: white;
}

.gallery-link:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-link:hover .gallery-overlay {
  opacity: 1;
}

/* Image Modal */
#imageModal .modal-content {
  background: transparent;
}

#imageModal .modal-image {
  max-height: 85vh;
  border-radius: 0.5rem;
}
