/* 
   Header Responsive Fix - Force "Pattaya Community" to Single Line
   This file uses !important to override all conflicting styles from style.css
*/

/* ===== CRITICAL FIX: Force single line display ===== */

/* Logo text container - must stay on one line */
.logo-text h1 {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Logo text paragraph */
.logo-text p {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Logo text container */
.logo-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
}

/* Logo container - prevent shrinking */
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    min-width: 0 !important;
}

/* Logo icon - prevent shrinking */
.logo-icon-img {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
}

/* Header content - prevent wrapping */
.header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 2rem !important;
}

/* Main header padding */
.main-header {
    padding: 1rem 0 !important;
}

/* ===== MOBILE RESPONSIVE ADJUSTMENTS ===== */

/* Extra small screens (< 320px) */
@media (max-width: 319px) {
    .logo-text h1 {
        font-size: 0.75rem !important;
        line-height: 1 !important;
    }

    .logo-text p {
        font-size: 0.55rem !important;
    }

    .header-content {
        gap: 0.25rem !important;
    }

    .main-header {
        padding: 0.5rem 0 !important;
    }
}

/* Small screens (320px - 374px) */
@media (min-width: 320px) and (max-width: 374px) {
    .logo-text h1 {
        font-size: 0.8rem !important;
        line-height: 1.05 !important;
    }

    .logo-text p {
        font-size: 0.6rem !important;
    }

    .header-content {
        gap: 0.4rem !important;
    }

    .main-header {
        padding: 0.6rem 0 !important;
    }
}

/* Medium screens (375px - 480px) */
@media (min-width: 375px) and (max-width: 480px) {
    .logo-text h1 {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
    }

    .logo-text p {
        font-size: 0.65rem !important;
    }

    .header-content {
        gap: 0.6rem !important;
    }

    .main-header {
        padding: 0.75rem 0 !important;
    }
}

/* Large mobile screens (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .logo-text h1 {
        font-size: 1rem !important;
        line-height: 1.15 !important;
    }

    .logo-text p {
        font-size: 0.7rem !important;
    }

    .header-content {
        gap: 1rem !important;
    }

    .main-header {
        padding: 0.85rem 0 !important;
    }
}

/* Tablets (641px - 1023px) */
@media (min-width: 641px) and (max-width: 1023px) {
    .logo-text h1 {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }

    .logo-text p {
        font-size: 0.75rem !important;
    }

    .header-content {
        gap: 1.5rem !important;
    }

    .main-header {
        padding: 1rem 0 !important;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .logo-text h1 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
    }

    .logo-text p {
        font-size: 0.75rem !important;
    }

    .header-content {
        gap: 2rem !important;
    }

    .main-header {
        padding: 1rem 0 !important;
    }
}

/* ===== ENSURE NO WRAPPING IN ANY SITUATION ===== */

/* Prevent any wrapping of the h1 text */
.logo-text h1 {
    word-wrap: normal !important;
    word-break: keep-all !important;
    hyphens: none !important;
}

/* Make sure the container doesn't force wrapping */
.logo {
    width: auto !important;
    max-width: none !important;
}

.logo-text {
    width: auto !important;
    max-width: none !important;
}
