/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    overflow-x: hidden;
    position: relative;
}

/* Desktop Layout */
@media (min-width: 768px) {
    body {
        padding: 20px;
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    .container {
        max-width: 800px;
        min-height: calc(100vh - 40px);
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    }
}

/* Main content wrapper - doar pe desktop */
.main-content {
    display: block;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 40px);
    }
    
    .header {
        flex-shrink: 0;
    }
    
    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        flex: 1;
        align-items: start;
        padding: 20px;
    }
    
    .hero {
        grid-column: 1;
        display: flex;
        flex-direction: column;
    }
    
    .additional-images {
        grid-column: 2;
        margin-top: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }
    
    .footer {
        flex-shrink: 0;
    }
}

/* Header Styles */
.header {
    position: relative;
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
    color: #8B7355;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Desktop Header */
@media (min-width: 768px) {
    .header {
        padding: 30px 40px;
        border-radius: 20px 20px 0 0;
    }
    
    .header-title {
        font-size: 40px;
    }
}

@media (min-width: 1200px) {
    .header {
        padding: 15px 40px;
    }
    
    .header-title {
        font-size: 36px;
    }
    
    /* Măresc textele și pe desktop */
    .verse-text {
        font-size: 22px;
    }
    
    .noi-title {
        font-size: 28px;
    }
    
    .couple-names {
        font-size: 60px;
    }
    
    .blessing-text {
        font-size: 19px;
    }
    
    .invitation-main {
        font-size: 21px;
    }
    
    .date-text {
        font-size: 38px;
    }
    
    .ceremony-text {
        font-size: 23px;
    }
    
    .location-text {
        font-size: 26px;
    }
    
    .location-link {
        font-size: 26px;
    }
    
    .closing-text {
        font-size: 28px;
    }
    
    .rsvp-text {
        font-size: 22px;
    }
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
}

.hero-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.1);
}

/* Desktop Hero Layout */
@media (min-width: 768px) {
    .hero-image {
        height: 400px;
        border-radius: 20px 20px 0 0;
    }
}

@media (min-width: 1200px) {
    .hero {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0;
    }
    
    .hero-image {
        height: 400px;
        border-radius: 20px;
        margin-bottom: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 0;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.8) 100%
    );
}

.hero-content {
    padding: 25px 15px;
    background: #ffffff;
}

/* Wedding Logo */
.logo-container {
    margin: -60px auto 20px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.wedding-logo {
    width: 150px;
    height: auto;
    max-width: 200px;
    filter: drop-shadow(0 8px 25px rgba(212, 175, 55, 0.3));
    transition: all 0.3s ease;
}

.wedding-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 35px rgba(212, 175, 55, 0.4));
}

/* Logo responsive sizing */
@media (min-width: 768px) {
    .wedding-logo {
        width: 180px;
        max-width: 220px;
    }
}

@media (min-width: 1200px) {
    .logo-container {
        margin: -30px auto 15px;
        padding: 10px;
    }
    
    .wedding-logo {
        width: 140px;
        max-width: 180px;
    }
}

/* Bible Verse */
.bible-verse {
    margin: 20px 0 30px;
    text-align: center;
}

.verse-text {
    font-size: 20px;
    color: #8B7355;
    font-style: italic;
    margin-bottom: 12px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.5;
}

.verse-reference {
    font-size: 18px;
    color: #999;
    font-weight: 300;
}

/* NOI Section */
.noi-section {
    margin: 25px 0;
    text-align: center;
}

.noi-title {
    font-size: 26px;
    color: #8B7355;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

/* Couple Details */
.couple-details {
    margin-bottom: 30px;
    text-align: center;
}

.blessing-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    line-height: 1.4;
}

.parents-info {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
}

.parents-side {
    flex: 1;
    text-align: center;
}

.parent-names {
    font-size: 18px;
    color: #8B7355;
    font-weight: 500;
    line-height: 1.3;
}

.names {
    margin: 35px 0;
}

.couple-names {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 600;
    color: #8B7355;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Event Information */
.event-info {
    margin: 35px 0;
    line-height: 1.8;
    text-align: center;
}

.invitation-main {
    font-size: 19px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 400;
    line-height: 1.5;
}

.wedding-date {
    margin: 20px 0;
    text-align: center;
}

.date-text {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 600;
    color: #D4AF37;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.ceremony-details {
    margin: 25px 0;
    padding: 25px;
    background: rgba(244, 228, 188, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.ceremony-text {
    font-size: 21px;
    color: #8B7355;
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.location-text {
    font-size: 24px;
    color: #D4AF37;
    font-weight: 500;
    margin-top: 18px;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

.location-link {
    display: block;
    font-size: 24px;
    color: #D4AF37;
    font-weight: 500;
    margin-top: 18px;
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.location-link:hover {
    color: #B8941F;
    transform: translateY(-1px);
}

.location-link i {
    margin-left: 8px;
    font-size: 18px;
    opacity: 0.8;
}

.invitation-closing {
    margin: 25px 0;
}

.closing-text {
    font-size: 26px;
    color: #8B7355;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.3;
}

.rsvp-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.rsvp-text {
    font-size: 21px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.contact-person {
    text-align: center;
    padding: 15px 20px;
    background: rgba(244, 228, 188, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    min-width: 0;
    overflow: visible;
}

.contact-name {
    font-size: 20px;
    color: #8B7355;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-phone {
    font-size: 18px;
    color: #D4AF37;
    font-weight: 500;
    font-family: monospace;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 15px 25px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 10px auto 0;
    white-space: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.contact-phone i {
    font-size: 16px;
    opacity: 0.8;
    margin-right: 8px;
}

.contact-phone:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    color: #B8941F;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.contact-phone:hover i {
    opacity: 1;
    transform: scale(1.1);
    margin-right: 10px;
}

.contact-phone:active {
    transform: translateY(-1px);
    background: rgba(212, 175, 55, 0.2);
}

/* Ajustări pentru ecrane foarte mici */
@media (max-width: 360px) {
    .contact-person {
        padding: 12px 15px;
    }
    
    .contact-phone {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .contact-phone i {
        font-size: 14px;
        margin-right: 6px;
    }
}

/* Removed action buttons - keeping page for information only */

/* Additional Images */
.additional-images {
    margin-top: 30px;
    flex: 1;
    padding: 0 15px;
}

.image-gallery {
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05) contrast(1.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Primul item mai mare pe mobile */
.gallery-item:first-child {
    height: 250px;
}

/* Desktop Gallery Layout */
@media (min-width: 768px) {
    .additional-images {
        margin-top: 20px;
        padding: 0 30px;
    }
    
    .image-gallery {
        border-radius: 20px;
        gap: 20px;
    }
    
    .gallery-item {
        height: 220px;
    }
    
    .gallery-item:first-child {
        height: 280px;
    }
    
    /* Contact info horizontal pe ecrane mai mari */
    .contact-info {
        flex-direction: row;
        justify-content: space-around;
        gap: 25px;
    }
    
    .contact-person {
        flex: 1;
    }
}

@media (min-width: 1200px) {
    .additional-images {
        margin-top: 0;
        padding: 0;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .image-gallery {
        flex: 1;
        height: auto;
        border-radius: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-item {
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        min-height: 250px;
    }
    
    .gallery-item:first-child {
        flex: 2;
        min-height: 400px;
    }
    
    .gallery-item:last-child {
        flex: 1;
        min-height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Footer */
.footer {
    padding: 30px 15px 40px;
    text-align: center;
    background: #ffffff;
}

.footer-text {
    font-size: 20px;
    color: #666;
    margin-bottom: 12px;
    font-style: italic;
    line-height: 1.4;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #8B7355;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Desktop Footer */
@media (min-width: 768px) {
    .footer {
        padding: 40px 40px 50px;
        border-radius: 0 0 20px 20px;
    }
    
    .footer-text {
        font-size: 17px;
    }
    
    .footer-names {
        font-size: 32px;
    }
}

@media (min-width: 1200px) {
    .footer {
        padding: 20px 40px;
    }
    
    .footer-text {
        font-size: 16px;
    }
    
    .footer-names {
        font-size: 30px;
    }
}

/* Responsive Design */

@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .hero-content {
        padding: 25px 20px;
    }
    
    .couple-names {
        font-size: 36px;
    }
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.4s; }
.hero-content > *:nth-child(5) { animation-delay: 0.5s; }
.hero-content > *:nth-child(6) { animation-delay: 0.6s; }

/* Special effects for logo */
.logo-container {
    animation: fadeInScale 0.8s ease forwards;
}

.wedding-logo {
    animation: logoAppear 1s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoAppear {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(-10deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Image Loading and Hover Effects */
.hero-image img,
.gallery-item img {
    transition: all 0.3s ease;
    opacity: 0;
}

.hero-image img.loaded,
.gallery-item img.loaded {
    opacity: 1;
}

.hero-image img.fade-in,
.gallery-item img.fade-in {
    animation: fadeInImage 0.6s ease forwards;
}

.hero-image:hover img,
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Logo Fallback Styles */
.logo-fallback {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInScale 0.8s ease forwards;
}

.ornate-border-fallback {
    width: 120px;
    height: 120px;
    background: #F8F6F0;
    border: 3px solid #D4AF37;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.ornate-border-fallback::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #F4E4BC;
    border-radius: 20px;
    z-index: -1;
}

.ornate-border-fallback::after {
    content: '❦';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    color: #D4AF37;
    background: #F8F6F0;
    padding: 0 8px;
}

.monogram-fallback {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: #8B7355;
    letter-spacing: 2px;
}

/* Save the Date Placeholder */
.save-date-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #F4E4BC 0%, #D4AF37 100%);
    color: #8B4513;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.save-date-placeholder i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.save-date-placeholder h4 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    margin: 5px 0;
}

.save-date-placeholder p {
    font-size: 14px;
    margin: 5px 0;
    font-weight: 500;
}

.save-date-placeholder small {
    font-size: 11px;
    opacity: 0.7;
    font-style: italic;
    margin-top: 5px;
}

/* Image Placeholder Styles */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #999;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
}

.image-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.image-placeholder p {
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* Loading Animation */
@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Layout Classes - ready for future enhancements */