/* ============================================
   STYLE UCAPAN IDUL FITRI
   Background: Masjid Nabawi
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Poppins', 'Times New Roman', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    background: #2c2418;
}

/* Background Masjid Nabawi */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Masjid_Nabawi_Medina_Saudi_Arabia.jpg/1280px-Masjid_Nabawi_Medina_Saudi_Arabia.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.85;
    z-index: -2;
}

/* Overlay gelap agar teks terbaca */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
    z-index: -1;
}

.container {
    max-width: 550px;
    width: 100%;
    margin: 20px auto;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,215,0,0.2);
    margin-bottom: 25px;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.skip-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(139, 69, 19, 0.85);
    color: #ffd966;
    border: 1px solid #d4af37;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.skip-btn:hover {
    background: #8b4513;
    color: #ffeb99;
    transform: scale(1.02);
    border-color: #ffd700;
}

/* Main Content */
.main-content {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Ucapan */
.card {
    background: rgba(255, 255, 245, 0.96);
    border-radius: 35px;
    padding: 45px 35px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
    text-align: center;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.greeting-icon {
    font-size: 65px;
    margin-bottom: 15px;
    filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.2));
}

h1 {
    color: #2c2418;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-family: 'Times New Roman', serif;
}

h2 {
    color: #b8860b;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
    letter-spacing: 2px;
    font-family: 'Times New Roman', serif;
}

.recipient, .sender {
    margin: 25px 0;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fef9e6 0%, #fff6e0 100%);
    border-radius: 20px;
    border-left: 5px solid #d4af37;
    border-right: 1px solid #f0e6d2;
    box-shadow: 0 5px 12px rgba(0,0,0,0.05);
}

.recipient p, .sender p {
    color: #8b5a2b;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Segoe UI', sans-serif;
}

.recipient h3, .sender h3 {
    color: #2c2418;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Times New Roman', serif;
    word-break: break-word;
}

/* Foto Pengirim */
.sender-photo {
    margin: 25px 0;
}

.sender-photo img {
    max-width: 130px;
    border-radius: 50%;
    border: 4px solid #d4af37;
    padding: 4px;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.sender-photo img:hover {
    transform: scale(1.03);
}

/* Pesan Ucapan */
.message {
    margin: 35px 0 25px;
    padding: 20px 15px;
    background: #fffef7;
    border-radius: 25px;
    line-height: 1.9;
    color: #4a3b28;
    font-style: italic;
    border: 1px solid #e8dcc8;
    box-shadow: inset 0 0 15px rgba(184, 134, 11, 0.05), 0 5px 12px rgba(0,0,0,0.03);
}

.message p {
    margin: 12px 0;
    font-size: 16px;
    font-weight: 500;
}

.message p:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #b8860b;
    font-style: normal;
}

.message p:last-child {
    font-size: 14px;
    color: #8b7355;
    margin-top: 15px;
}

/* Ornamen Islami */
.card::before {
    content: "﴿";
    font-family: 'Times New Roman', serif;
    font-size: 28px;
    color: #d4af37;
    position: absolute;
    top: -15px;
    left: 20px;
    opacity: 0.5;
}

.card::after {
    content: "﴾";
    font-family: 'Times New Roman', serif;
    font-size: 28px;
    color: #d4af37;
    position: absolute;
    bottom: -15px;
    right: 20px;
    opacity: 0.5;
}

.card {
    position: relative;
}

/* Dekorasi Tambahan */
.bismillah {
    font-size: 14px;
    color: #b8860b;
    margin-bottom: 20px;
    font-family: 'Times New Roman', serif;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .card {
        padding: 35px 25px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    .recipient h3, .sender h3 {
        font-size: 18px;
    }
    
    .message p {
        font-size: 14px;
    }
    
    .greeting-icon {
        font-size: 50px;
    }
    
    .sender-photo img {
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 26px;
    }
    
    .recipient, .sender {
        padding: 12px 15px;
    }
}