/* Minimal styles for the wedding countdown app */

/* Custom font face for PixelGame - used only for countdown */
@font-face {
    font-family: 'PixelGame';
    src: url('../fonts/PixelGame.woff2') format('woff2'),
         url('../fonts/PixelGame.woff') format('woff'),
         url('../fonts/PixelGame.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Custom font face for Pixelon - used for everything else */
@font-face {
    font-family: 'BokThang';
    src: url('../fonts/BokThang.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Pixellari";
    src: url('../fonts/Pixellari.woff2') format('woff2'),
         url('../fonts/Pixellari.woff') format('woff'),
         url('../fonts/Pixellari.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
body {
    background: linear-gradient(135deg, #fffdf8 0%, #ede9de 100%);
    min-height: 100vh;
    font-family: 'Pixellari', 'Orbitron', monospace;
    color: #56665b;
    font-size: 20px;
}

/* Use BokThang for all Thai templates rendered with base_th.html */
html[lang='th'] body,
html[lang='th'] .navbar-brand,
html[lang='th'] .navbar-nav .nav-link,
html[lang='th'] .lead,
html[lang='th'] .btn,
html[lang='th'] .form-control,
html[lang='th'] .form-select,
html[lang='th'] textarea,
html[lang='th'] select,
html[lang='th'] input {
    font-family: 'BokThang', 'Sarabun', sans-serif;
    font-size: 25px;
}

.navbar-brand {
    font-weight: 500;
    font-size: 18px;
    font-family:'Pixellari', 'Orbitron', monospace;
    color: #56665b !important;
}

.brand-hashtag {
    font-family: 'Pixellari', 'Orbitron', monospace !important;
}

/* Force navigation to stay horizontal on all devices */
.navbar-nav {
    flex-direction: row !important;
}

.navbar-nav .nav-link {
    color: #56665b !important;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #56665b !important;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 16px;
    }
    
    .navbar-nav .nav-link {
        font-size: 12px;
        padding: 0.5rem 0.5rem !important;
    }
}

.countdown-container {
    margin: 2rem 0;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    margin: 0.5rem;
    box-shadow: 0 4px 12px rgba(104, 186, 178, 0.15);
    border: 1px solid #56665b;
    backdrop-filter: blur(10px);
}

.countdown-number {
    font-size: 36px;
    font-weight: 400;
    color: #74877a;
    font-family: 'Press Start 2P', monospace;
}

.countdown-label {
    font-size: 15px;
    color: #56665b;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    font-family: 'PixelGame', 'Press Start 2P', monospace;
}

/* Wedding Image Placeholder Styles */
.wedding-image-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.wedding-image-placeholder {
    width: 400px;
    height: 180px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px dashed #6e8274;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(104, 186, 178, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.wedding-image-placeholder:hover {
    border-color: #5eb3ab ;
    box-shadow: 0 6px 16px rgba(104, 186, 178, 0.2);
    transform: translateY(-2px);
}

.placeholder-content {
    text-align: center;
    color: #4a8a82;
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.placeholder-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #a9c2b0;
}

.placeholder-content small {
    font-size: 0.85rem;
    color: #4a8a82;
}

/* Responsive design for image placeholder */
@media (max-width: 768px) {
    .wedding-image-placeholder {
        width: 192px;
        height: 144px;
    }
    
    .placeholder-icon {
        font-size: 2.5rem;
    }
    
    .placeholder-text {
        font-size: 1rem;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #a9c2b0 , #a9c2b0);
    border-color: #56665b;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    color: #56665b;
    box-shadow: 0 2px 8px rgba(66, 163, 150, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #56665b, #56665b);
    border-color: #56665b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 163, 150, 0.4);
}

.btn-outline-secondary {
    border-color: #56665b;
    color: #a9c2b0;
}

.btn-outline-secondary:hover {
    background-color: #56665b;
    border-color: #56665b;
    color: #ffffff;
}

.card {
    border: 1px solid #6e8274;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(104, 186, 178, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #6e8274;
    padding: 0.75rem;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
    border-color: #5eb3ab ;
    box-shadow: 0 0 0 0.2rem rgba(94, 179, 171, 0.25);
    background-color: white;
}

.alert {
    border-radius: 6px;
}

footer {
    margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent zoom on iPhone */
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .countdown-number {
        font-size: 12px !important;
    }
    
    .countdown-label {
        font-size: 8px !important;
    }
    
    .countdown-box {
        padding: 1rem 0.5rem;
        margin: 0.25rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* iPhone specific optimizations */
@media (max-width: 480px) {
    .display-4 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    .countdown-container {
        margin: 1.5rem 0;
    }
    
    .countdown-box {
        padding: 0.5rem 0.25rem;
        margin: 0.125rem;
    }
    
    .countdown-number {
        font-size: 10px !important;
    }
    
    .countdown-label {
        font-size: 7px !important;
        margin-top: 0.25rem;
    }
    
    .wedding-image-placeholder {
        width: 280px;
        height: 120px;
    }
    
    .placeholder-icon {
        font-size: 2rem;
    }
    
    .btn-lg {
        margin: 0 1rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    .navbar-brand {
        font-size: 14px;
    }
    
    .navbar-nav .nav-link {
        font-size: 11px;
        padding: 0.5rem 0.25rem !important;
    }
    /* Ensure single row on mobile */
    .col-3 {
        max-width: 23%;
        flex: 0 0 23%;
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 360px) {
    .display-4 {
        font-size: 1.5rem !important;
    }
    
    .countdown-number {
        font-size: 1.25rem;
    }
    
    .countdown-label {
        font-size: 7px;
    }
    
    .wedding-image-placeholder {
        width: 240px;
        height: 100px;
    }
    
    .col-6 {
        padding: 0.25rem;
    }
}

/* Force small font sizes on ALL mobile devices */
@media (max-width: 767px) {
    .countdown-number {
        font-size: 14px !important;
    }
    
    .countdown-label {
        font-size: 9px !important;
    }
}