/* Ślubne Style - Olga & Maciej */
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@400;500;700&family=Montserrat:wght@300;400;500&display=swap');

:root {
  /* Paleta kolorów weselnych */
  --primary-color: #d8b4a0; /* Pudrowy róż */
  --primary-light: #f2e6d9; /* Jasny beżowy */
  --primary-dark: #b68973; /* Ciemniejszy brąz */
  --accent-color: #7d9c8c; /* Sage zieleń */
  --accent-color-light: #c7d8d0; /* Jasna zieleń */
  --gold: #d4af37; /* Złoty akcent */
  --text-primary: #3a3238; /* Ciemny fiolet */
  --text-secondary: #6c646a; /* Średni fiolet */
  --text-on-primary: #ffffff;
  --background-color: #fff; 
  --surface-color: #ffffff;
  --error-color: #cc8686;
  --success-color: #8aa77d;
  
  /* Typografia */
  --font-heading: 'Great Vibes', cursive;
  --font-body: 'Playfair Display', serif;
  --font-ui: 'Montserrat', sans-serif;
  
  /* Zaokrąglenia i cienie */
  --border-radius: 8px;
  --card-border-radius: 12px;
  --box-shadow: 0 4px 15px rgba(184, 139, 120, 0.1);
  --box-shadow-elevated: 0 8px 25px rgba(184, 139, 120, 0.15);
}

body {
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 0;
  color: var(--primary-dark);
  line-height: 1.3;
}

h1 {
  font-size: 4.2rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 1px 1px 1px rgba(184, 139, 120, 0.2);
}

@media (max-width: 768px) {
  h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
  }
  
  .wedding-logo, .wedding-logo a {
	font-size: 50px !important;
}
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
}

h2 {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }
}

h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

@media (max-width: 768px) {
  h3 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 480px) {
  h3 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
  }
}

p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: 0.2px;
}

.material-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Responsywność dla kontenera */
@media (max-width: 768px) {
  .material-container {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .material-container {
    padding: 12px;
  }
}

/* Karty */
.mdc-card {
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;

}



/* Przyciski */
.mdc-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 44px;
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  overflow: hidden;
  vertical-align: middle;
  background: none;
  border: none;
  outline: none;
}

.mdc-button--raised {
  background-color: var(--primary-color);
  color: var(--text-on-primary);
  box-shadow: 0 4px 10px rgba(184, 139, 120, 0.2);
}

.mdc-button--raised:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 15px rgba(184, 139, 120, 0.3);
  transform: translateY(-2px);
}

.mdc-button--unelevated {
  background-color: transparent;
  color: var(--text-on-primary);
}

.mdc-button--unelevated:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.mdc-button--outlined {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.mdc-button--outlined:hover {
  background-color: rgba(216, 180, 160, 0.08);
  transform: translateY(-2px);
}

.mdc-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mdc-button__ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: currentColor;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mdc-button:hover .mdc-button__ripple {
  opacity: 0.1;
}

/* Górny pasek nawigacji */
.mdc-top-app-bar {
  background: linear-gradient(to right, var(--primary-light), var(--primary-color), var(--primary-light));
  color: var(--text-primary);
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(184, 139, 120, 0.15);
  height: 72px;
}

@media (max-width: 768px) {
  .mdc-top-app-bar {
    height: 64px;
  }
}

@media (max-width: 480px) {
  .mdc-top-app-bar {
    height: 56px;
  }
}

.mdc-top-app-bar__row {
  display: flex;
  height: 72px;
  padding: 0 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .mdc-top-app-bar__row {
    height: 64px;
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .mdc-top-app-bar__row {
    height: 56px;
    padding: 0 12px;
  }
}

.mdc-top-app-bar__section {
  display: flex;
  align-items: center;
}

.mdc-top-app-bar__section--align-start {
  justify-content: flex-start;
  flex-grow: 1;
}

.mdc-top-app-bar__section--align-end {
  justify-content: flex-end;
}

.mdc-top-app-bar__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 400;
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}

.mdc-top-app-bar--fixed-adjust {
  padding-top: 72px;
}

/* Pola formularza */
.mdc-text-field {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 20px;
}

.mdc-text-field__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-secondary);
}

.mdc-text-field__input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1px solid rgba(184, 139, 120, 0.25);
  border-radius: 6px;
  background-color: var(--surface-color);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.mdc-text-field__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(216, 180, 160, 0.2);
}

.mdc-text-field__input::placeholder {
  color: rgba(0, 0, 0, 0.38);
}

/* Siatka layoutu */
.mdc-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

/* Powiadomienia */
.mdc-snackbar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: 80%;
  background-color: var(--surface-color);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  font-family: var(--font-ui);
  font-size: 14px;
  display: none;
  text-align: center;
  border-left: 4px solid var(--primary-color);
}

.mdc-snackbar--active {
  display: block;
  animation: snackbar-fadein 0.3s ease;
}

.mdc-snackbar--success {
  border-left-color: var(--success-color);
}

.mdc-snackbar--error {
  border-left-color: var(--error-color);
}

/* Animacje */
@keyframes snackbar-fadein {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

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

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

/* Logo ślubu */
.wedding-logo, .wedding-logo a {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 70px;
  position: relative;
  margin: 0 auto;
  color: var(--text-primary);
  line-height: 1;
  text-shadow: 1px 1px 2px rgba(184, 139, 120, 0.3);
  letter-spacing: 1px;
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration:none;
}

.wedding-logo::after {
  content: "";
  display: none;
}

/* Ślubne elementy dekoracyjne */
.wedding-header {
  text-align: center;
  position: relative;
  padding-top: 30px;

}

.wedding-header h1 {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}



.wedding-divider {
  position: relative;
  text-align: center;
  margin: 40px 0;
  height: 30px;
}

.wedding-divider::before {
  content: "♥";
  font-size: 20px;
  color: var(--primary-color);
  background-color: var(--surface-color);
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.wedding-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 160, 0.4), transparent);
  z-index: 0;
}

/* Style specyficzne dla galerii zdjęć */
.wedding-gallery-item {
  position: relative;
  margin: 10px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.wedding-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

.wedding-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.wedding-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 10px;
  transition: opacity 0.3s ease;
}

.author-name {
  font-weight: bold;
  margin-bottom: 3px;
}

.photo-description {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mdc-lightbox__caption {
  max-width: 600px;
  width: 90%;
  word-wrap: break-word;
}

/* Poprawka dla układu galerii */
#gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

/* Responsywność galerii i elementów strony */
@media (max-width: 768px) {
  #gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  
  .wedding-gallery-item img {
    height: 180px;
  }
  
  .wedding-gallery-caption {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  #gallery-container {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    padding: 10px;
  }
  
  /* Dostosowanie przycisków na małych ekranach */
  .mdc-button {
    padding: 0 16px;
    height: 38px;
    font-size: 12px;
  }
  
  .wedding-gallery-item {
    margin: 5px;
    border-radius: 6px;
  }
  
  .wedding-gallery-item img {
    height: 150px;
  }
  
  .wedding-gallery-caption {
    padding: 6px;
    font-size: 0.85em;
  }
  
  .photo-description {
    font-size: 0.8em;
    margin-top: 2px;
  }
  
  .wedding-gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.12);
  }
}

/* Dodatkowe ozdobniki ślubne */
.wedding-flower-decoration {
  position: absolute;
  width: 160px;
  height: 160px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d8b4a0' fill-opacity='0.25'%3E%3Cpath d='M50,10 C55,25 70,30 85,35 C70,40 55,45 50,60 C45,45 30,40 15,35 C30,30 45,25 50,10 Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.wedding-flower-1 {
  top: -60px;
  left: -60px;
  transform: rotate(30deg);
}

.wedding-flower-2 {
  bottom: -60px;
  right: -60px;
  transform: rotate(200deg);
}

/* Scrollbar w stylu ślubnym */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--primary-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  border: 3px solid var(--primary-light);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Dekoracja cytatu */
.wedding-quote {
  font-family: var(--font-heading);
  font-size: 38px;
  text-align: center;
  color: #625249;
  position: relative;
  line-height: 40px;
  border-radius: 20px;
  letter-spacing: 1.5px;
}

@media (max-width: 768px) {
  .wedding-quote {
    font-size: 38px;
    line-height: 38px;
	margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .wedding-quote {
    font-size: 38px;
    line-height: 38px;
    letter-spacing: 1px;
	margin-bottom: 30px;
  }
}

.wedding-quote::before,
.wedding-quote::after {
  content: '\201C';
  font-size: 90px;
  color: var(--primary-color);
  opacity: 0.25;
  position: absolute;
  line-height: 1;
}

.wedding-quote::before {
  top: 0;
  left: 10px;
}

.wedding-quote::after {
  content: '\201D';
  bottom: -30px;
  right: 10px;
}

/* Animacja serca */
.animated-heart {
  position: relative;
  display: inline-block;
  font-size: 1.5em;
  color: var(--primary-color);
  animation: heart-beat 1.5s infinite;
  margin: 0 10px;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.2); }
  20%, 40% { transform: scale(0.9); }
}

/* Dodatkowe style mobilne */
@media (max-width: 768px) {
  .mdc-card {
    padding: 15px 0;
    margin-bottom: 24px;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .mdc-card {
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 8px;
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  /* Poprawka dla nawigacji mobilnej */
  .mdc-top-app-bar__section--align-end {
    display: flex;
    justify-content: flex-end;
  }
  
  /* Poprawka dla formularzy na małych ekranach */
  .mdc-text-field {
    margin-bottom: 12px;
  }
  
  .mdc-text-field__input {
    padding: 12px 16px;
    font-size: 14px;
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1 {
  width: 100%;
}