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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Remove background pattern */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #d32f2f;
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #b71c1c;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.lang-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
}

.lang-btn.active {
    background: white;
    color: #d32f2f;
}

/* Remove header pattern */

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-align: center;
}

header h2 {
    font-size: 2rem;
    font-weight: 400;
    color: white;
    opacity: 0.95;
    text-align: center;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
}

/* Remove main decoration */

/* Countdown Section */
.countdown-section {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255,215,0,0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139,69,19,0.01) 0%, transparent 50%);
    pointer-events: none;
}

.countdown-section h3 {
    color: #333;
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flip-card {
    background-color: transparent;
    width: 85px;
    height: 65px;
    perspective: 1000px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: 2px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
    transform-origin: bottom center;
}

.flip-card-back {
    transform: rotateX(-90deg);
}

.flip-card.flip .flip-card-front {
    transform: rotateX(90deg);
}

.flip-card.flip .flip-card-back {
    transform: rotateX(0deg);
}

.number {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #d32f2f;
}

.time-label {
    color: #666;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 8px;
}

.separator {
    color: #666;
    font-size: 2rem;
    font-weight: 300;
    margin: 0 10px;
}

/* Missing Person Info Section */
.missing-person-info {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.2),
        0 0 20px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.photo-section {
    text-align: center;
}

.missing-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid #d32f2f;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Simplified photo styling */

.photo-placeholder {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border: 3px dashed #d32f2f;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: 
        0 8px 30px rgba(0,0,0,0.3),
        0 0 20px rgba(211,47,47,0.2);
}

.placeholder-text h4 {
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: bold;
}

.placeholder-text p {
    color: #666;
    margin: 5px 0;
    font-size: 0.9rem;
}

.details-section h3 {
    color: #d32f2f;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #d32f2f;
    padding-bottom: 10px;
    font-weight: 600;
}

.detail-item {
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #d32f2f;
}

/* Hebrew RTL styling for detail items */
.detail-item[style*="direction: rtl"] {
    border-left: none;
    border-right: 4px solid #d32f2f;
}

.detail-item strong {
    color: #d32f2f;
    display: inline-block;
    min-width: 100px;
}

.update-needed {
    color: #666;
    font-style: italic;
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #ffeaa7;
}

/* Tip Submission Section */
.tip-submission {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.2),
        0 0 20px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.tip-submission h3 {
    color: #d32f2f;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.tip-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

/* Contact Methods */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Remove contact method effects */

.contact-method.emergency {
    border-color: #d32f2f;
    background: #fff;
    text-align: center;
}

.contact-method.police {
    border-color: #1976d2;
    background: #fff;
    text-align: center;
}

.contact-method.family {
    border-color: #7b1fa2;
    background: #fff;
}

.contact-method h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-method p {
    margin-bottom: 5px;
}

/* Form Styles */
.tip-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.tip-form h4 {
    color: #d32f2f;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #d32f2f;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: #d32f2f;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background: #b71c1c;
}

.privacy-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Share Section */
.share-section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.2),
        0 0 20px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
}

.share-section h3 {
    color: #d32f2f;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.share-section p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s ease;
    color: white;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.facebook {
    background: #4267B2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.copy {
    background: #6c757d;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Old RTL Support - Now using text-only RTL approach */

/* Hebrew Text Styling - RTL for text only, not layout */
[data-he] {
    font-family: 'Inter', 'David Libre', 'David', 'Times New Roman', serif;
}

/* Keep layout elements always LTR */
.language-switcher,
.countdown-container,
.contact-grid,
.share-buttons,
.missing-person-info,
.photo-section {
    direction: ltr !important;
}

/* Header titles - special handling for Hebrew text centering */
header h1, header h2 {
    direction: ltr !important;
    text-align: center !important;
}

/* Countdown section title - special handling for Hebrew text centering */
.countdown-section h3 {
    direction: ltr !important;
    text-align: center !important;
}

/* Submit button special handling for Hebrew text centering */
.submit-btn {
    direction: ltr !important;
    text-align: center !important;
}

/* Footer text - special handling for Hebrew text centering */
footer p {
    direction: ltr !important;
    text-align: center !important;
}

/* Form inputs handle Hebrew text properly */
input, textarea {
    unicode-bidi: plaintext;
}

/* Footer styling */
footer {
    text-align: center;
}

footer p {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        gap: 5px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 35px;
    }
    
    .rtl .language-switcher {
        right: auto;
        left: 15px;
    }
    
    .countdown-container {
        gap: 10px;
    }
    
    .flip-card {
        width: 70px;
        height: 55px;
    }
    
    .number {
        font-size: 1.3rem;
    }
    
    .countdown-section {
        padding: 35px 25px;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .separator {
        font-size: 2rem;
        margin: 0 5px;
    }
    
    .missing-person-info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .countdown-section {
        padding: 20px;
    }
    
    .countdown-container {
        gap: 12px;
    }
    
    .flip-card {
        width: 60px;
        height: 50px;
    }
    
    .number {
        font-size: 1.1rem;
    }
    
    .countdown-section {
        padding: 30px 20px;
    }
    
    .time-label {
        font-size: 0.6rem;
    }
    
    .separator {
        font-size: 1.5rem;
        margin: 0 3px;
    }
    
    .missing-person-info,
    .tip-submission,
    .share-section {
        padding: 25px;
        margin: 20px 0;
        background: 
            linear-gradient(145deg, 
                rgba(241, 250, 238, 0.98) 0%, 
                rgba(168, 218, 220, 0.92) 100%);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        box-shadow: 
            0 12px 35px rgba(29, 53, 87, 0.12),
            0 4px 12px rgba(29, 53, 87, 0.08),
            inset 0 1px 0 rgba(241, 250, 238, 0.8);
        border: 1px solid rgba(241, 250, 238, 0.4);
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
    }

    .missing-person-info:hover,
    .tip-submission:hover,
    .share-section:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 16px 45px rgba(29, 53, 87, 0.15),
            0 6px 15px rgba(29, 53, 87, 0.1),
            inset 0 1px 0 rgba(241, 250, 238, 0.9);
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    header h2 {
        font-size: 1.2rem;
    }
}