:root {
    --primary: #2E8B57; /* SeaGreen */
    --secondary: #8B4513; /* SaddleBrown */
    --background: #FAF3E0; /* Linen */
    --text: #2F4F4F; /* DarkSlateGray */
    --light-text: #696969; /* DimGray */
    --max-width: 1200px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

h1, h2, h3 {
    font-family: 'Georgia', serif;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #256e42;
}

.btn-secondary {
    background: var(--secondary);
}

.btn-secondary:hover {
    background: #6b350f;
}

/* Hero Section */
.hero {
    background-image: url('zdjecia-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.section {
    padding: 6rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1 1 300px;
}

.about-image {
    flex: 1 1 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.about-video {
    flex: 1 1 300px;
}

.video-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    background: #000;
}

.custom-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
}

.video-wrapper::-webkit-media-controls-panel {
    border-radius: 12px;
}

.video-control-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(46, 139, 87, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
}

.video-control-hint i {
    font-size: 1.2rem;
}

.custom-video.playing ~ .video-control-hint,
.video-wrapper.played .video-control-hint {
    opacity: 0;
    pointer-events: none;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Opinions Section */
.opinions-section {
    /* will be applied via #opinions */
}

.reviews-slider {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--background);
}

.reviews-slider::-webkit-scrollbar {
    height: 8px;
}

.reviews-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.reviews-slider::-webkit-scrollbar-track {
    background-color: var(--background);
}

.review-item {
    flex: 0 0 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.review-item p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
}

.review-item .author {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.review-item .delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,0,0,0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.review-item:hover .delete-btn {
    opacity: 1;
}

/* Add Review Form */
.add-review-form {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.add-review-form h3 {
    margin-top: 0;
}

.add-review-form .form-group {
    margin-bottom: 1rem;
}

.add-review-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.add-review-form .form-group input,
.add-review-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.add-review-form .form-group input:focus,
.add-review-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

.add-review-form .btn {
    margin-top: 1rem;
}

/* Admin toggle */
.admin-toggle {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-toggle label {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.contact-info,
.contact-form {
    flex: 1 1 300px;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
}

#formStatus {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    display: none;
}

#formStatus.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formStatus.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-logo {
    h3 {
        margin-bottom: 0.5rem;
    }
}

.footer-links {
    h4 {
        margin-bottom: 1rem;
    }

    ul {
        list-style: none;
    }

    li {
        margin-bottom: 0.5rem;
    }

    a {
        color: white;
    }

    a:hover {
        text-decoration: underline;
    }
}

.footer-social {
    h4 {
        margin-bottom: 1rem;
    }

    .social-links {
        display: flex;
        gap: 1rem;
    }

    .social-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: white;
        border-radius: 50%;
        text-decoration: none;
        font-size: 1rem;
    }

    .social-links a:hover {
        background: var(--secondary);
    }
}

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

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}
.hidden { display: none; }

#adminEditor {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
}

#adminEditorOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

#adminEditorPanel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#adminEditorHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--primary);
  color: white;
}

#adminEditorHeader h2 {
  margin: 0;
  color: white;
  font-size: 1.3rem;
}

#adminEditorTabs {
  display: flex;
  gap: 0;
  background: #f0f0f0;
  padding: 0;
  overflow-x: auto;
}

.tab-btn {
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.tab-btn:hover {
  background: #e0e0e0;
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

#adminEditorContent {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.editor-tab {
  display: none;
}

.editor-tab.active {
  display: block;
}

.editor-tab .form-group {
  margin-bottom: 1rem;
}

.editor-tab label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: #333;
}

.editor-tab input[type="text"],
.editor-tab textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 0.95rem;
}

.editor-tab textarea {
  min-height: 80px;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.editor-tab input:focus,
.editor-tab textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(46,139,87,0.2);
}

#adminEditorFooter {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

#adminEditorFooter .btn-secondary {
  background: #888;
}

#adminEditorFooter .btn-secondary:hover {
  background: #666;
}

.gallery-edit-item {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #eee;
}

.gallery-edit-item hr {
  display: none;
}

.gallery-edit-item .btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  margin-top: 0.25rem;
}

#adminEditorStatus {
  margin-left: auto;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

#adminEditorStatus.success {
  background: #d4edda;
  color: #155724;
}

#adminEditorStatus.error {
  background: #f8d7da;
  color: #721c24;
}

#adminPanel {
  max-width: 400px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#adminPanel h3 {
  margin-top: 0;
}

#adminPanel input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 0.5rem 0 1rem;
}

.form-status {
  padding: 0.75rem;
  border-radius: 5px;
  display: none;
}

.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.mt-3 {
  margin-top: 1rem;
}
