/* style.css - Hot or Not mit Blau-Lila-Gradient und echtem Polaroid-Look mit Klebeband */

body {
    background: linear-gradient(135deg, #1e3c72, #2a5298, #6b46c1, #9d50bb);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
}

.navbar {
    background: rgba(30, 60, 114, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.9), rgba(157, 80, 187, 0.8));
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    padding: 80px 20px;
    color: white;
    backdrop-filter: blur(5px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* ==================== ECHTER POLAROID-LOOK MIT KLEBEBAND (KLEINERE VERSION) ==================== */

.polaroid-container {
    perspective: 1000px;
    position: relative;
    display: inline-block;
    margin: 15px;
}

.polaroid-card {
    position: relative;
    width: 210px;                          /* ca. halb so groß wie vorher */
    background: white;                     /* Klassischer weißer Polaroid-Rahmen */
    padding: 10px 10px 50px 10px;           /* Kleinerer Innenabstand, unten Platz für Caption */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    border-radius: 8px;
}

/* Leichte Drehung für Polaroid-Feeling */
.polaroid-card:nth-child(odd) { transform: rotate(-4deg); }
.polaroid-card:nth-child(even) { transform: rotate(4deg); }
.polaroid-card:nth-child(3n) { transform: rotate(-2deg); }

.polaroid-card:hover {
    transform: translateY(-15px) rotate(0deg) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

/* Das Bild / Platzhalter */
.polaroid-image {
    width: 100%;
    height: 180px;                         /* Halb so hoch wie vorher */
    background: black;
    background: radial-gradient(circle at center, #111 0%, black 70%);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}

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

.placeholder-icon {
    font-size: 70px;
    opacity: 0.6;
    color: #4a6dbb;
}

/* Klebeband oben links */
.tape-top {
    position: absolute;
    top: -8px;
    left: 20px;
    width: 70px;
    height: 30px;
    background: linear-gradient(145deg, rgba(220,200,160,0.75), rgba(200,180,140,0.75));
    border: 1px solid rgba(180,160,120,0.5);
    border-radius: 4px;
    transform: rotate(-35deg);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    z-index: 2;
}
.tape-top::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 8px;
    width: 18px;
    height: 12px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
    transform: rotate(15deg);
}

/* Klebeband unten rechts */
.tape-bottom {
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 70px;
    height: 30px;
    background: linear-gradient(135deg, rgba(220,200,160,0.75), rgba(200,180,140,0.75));
    border: 1px solid rgba(180,160,120,0.5);
    border-radius: 4px;
    transform: rotate(40deg);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    z-index: 2;
}
.tape-bottom::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 8px;
    width: 18px;
    height: 12px;
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
    transform: rotate(-15deg);
}

/* Caption unter dem Foto */
.polaroid-caption {
    text-align: center;
    margin-top: 15px;
    color: #333;
    font-family: 'Courier New', monospace, sans-serif;
}
.polaroid-caption h5 {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 6px;
}
.polaroid-caption p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

/* 18+ Varianten – dunkler Hintergrund */
.polaroid-card.bg-dark {
    background: #1a0033 !important;        /* Dunkles Lila */
}
.polaroid-card.bg-dark .polaroid-caption {
    color: #f0c0ff;
}
.polaroid-card.bg-dark .polaroid-caption h5 {
    color: #ff9edd;
}
.polaroid-card.bg-dark .placeholder-icon {
    color: #ff6b9d;
}

/* Normale Bootstrap-Karten (Login, Upload etc.) */
.card {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    color: white;
}
.card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}
.card .card-header {
    background: rgba(0, 0, 0, 0.3) !important;
    border-bottom: none;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.btn-lg {
    padding: 16px 40px;
    font-size: 1.2rem;
}
.btn-outline-light {
    border-color: #e0e7ff;
    color: #e0e7ff;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Modal (18+ Passwort) */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: rgba(40, 60, 140, 0.95);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: 2px solid #6b9eff;
}
.close {
    color: #ccc;
    font-size: 2rem;
    cursor: pointer;
}
.close:hover { color: #ff416c; }

/* Chat-Nachrichten – blauer Hintergrund entfernt, schwarze Schrift */
.chat-messages .text-end .d-inline-block {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ddd;
}

.chat-messages .d-inline-block:not(.text-end) {
    background: #f8f9fa;
    color: #000000;
}

.chat-messages .d-inline-block {
    max-width: 80%;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-messages strong {
    color: #000000;
    font-weight: 600;
}

.chat-messages small {
    color: #666666 !important;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .polaroid-card {
        transform: none !important;
        width: 180px;
    }
    .polaroid-image {
        height: 150px;
    }
    .tape-top, .tape-bottom {
        width: 60px;
        height: 28px;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
}