/* ==========================================================================
   Thai-Norwegian Dictionary Styles
   ========================================================================== */

/* Reset and Base Styles
   ========================================================================== */
   * {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, rgb(187, 207, 227) 0%, #e9ecef 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Layout Components
   ========================================================================== */
#wrapper2 {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.shell2 {
    padding: 0;
}

#header {
    background: linear-gradient(
        135deg, 
        rgb(187, 194, 118) 0%, 
        rgb(209, 202, 152) 50%, 
        rgb(194, 206, 217) 100%
    );
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.main {
    padding: 10px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    min-height: 400px;
}

.post {
    background: white;
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.container {
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    margin: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Grid System
   ========================================================================== */
.col-50 {
    float: center;
    width: 100%;
    margin-top: 6px;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Form Elements
   ========================================================================== */
input[type=text], 
select, 
textarea {
    width: 100%;
    padding: 15px 20px;
    border: 3px solid transparent;
    border-radius: 25px;
    resize: vertical;
    font-size: 18px;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #6c757d, #4ecdc4) border-box;
    transition: all 0.3s ease;
    outline: none;
}

input[type=text]:focus {
    box-shadow: 0 0 20px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

label {
    padding: 12px 12px 12px 0;
    display: inline-block;
    color: #333;
    font-weight: 600;
}

input[type=submit] {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type=submit]:hover {
    background: linear-gradient(135deg, #44a08d 0%, #4ecdc4 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Table Styles
   ========================================================================== */
table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.bordered {
    border: 2px solid #e9ecef;
}

.bordered td {
    border: 1px solid #dee2e6;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

tr:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

tr:nth-child(odd) {
    background: linear-gradient(135deg, #ffffff 0%, #f1f2f6 100%);
}

/* Typography Styles
   ========================================================================== */
.style1 {
    font-size: 23px;
    font-weight: bold;
    color: #624b4b;
}

.style2 {
    background: linear-gradient(
        135deg, 
        rgb(156, 170, 113) 0%, 
        rgb(191, 201, 148) 100%
    );
    color: black;
    font-weight: 600;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-size: 20px;
}

.style3 {
    color: #6c5ce7;
    font-size: 23px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.4;
}

.style4 {
    font-size: 23px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    color: black;
    line-height: 1.4;
}

.style5 {
    font-size: 23px;
    font-weight: 400;
    margin-bottom: 20px;
    color: black;
    margin-top: 20px;
    line-height: 1.4;
}

.style7 {
    color: #00b894;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.4;
}

/* Search Results
   ========================================================================== */
.search-result {
    background: linear-gradient(135deg, #ffffff 0%, #f1f2f6 100%);
    border-left: 3px solid #6c757d;
    margin: 5px 0;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    line-height: 0.7;
    font-size: 23px;
    transition: all 0.3s ease;
}

.search-result:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.result-highlight {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 2px 5px;
    border-radius: 5px;
    font-weight: 600;
}

/* Audio/Sound Button Styles
   ========================================================================== */
img[src*="sound2.png"] {
    filter: hue-rotate(200deg) saturate(1.5);
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%);
}

img[src*="sound2.png"]:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(255, 118, 117, 0.4);
}

/* Footer
   ========================================================================== */
#footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: white;
    text-align: center;
    padding: 10px;
}

.footer-bottom p {
    margin: 0;
    color: #ddd;
    font-size: 15px;
}

.footer-bottom a {
    color: #74b9ff;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #0984e3;
}

/* Animations
   ========================================================================== */
@keyframes float {
    0% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-10px); 
    }
    100% { 
        transform: translateY(0px); 
    }
}

.search-btn {
    animation: float 3s ease-in-out infinite;
}

/* Interactive Elements
   ========================================================================== */
.speak-norwegian,
.play-pronounce {
    cursor: pointer;
    transition: all 0.2s ease;
}

.speak-norwegian:hover,
.play-pronounce:hover {
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(108, 92, 231, 0.5);
}

/* Responsive Design
   ========================================================================== */
@media screen and (max-width: 768px) {
    #wrapper2 {
        margin: 10px;
        border-radius: 15px;
    }
    
    #header {
        padding: 20px;
    }
    
    .main {
        padding: 10px;
    }
    
    .style4 {
        font-size: 20px;
    }
    
    table {
        font-size: 14px;
    }
    
    .style2 {
        font-size: 16px;
        padding: 8px;
    }
    
    .style3,
    .style5 {
        font-size: 18px;
    }
}

@media screen and (max-width: 600px) {
    .col-50 {
        width: 90%;
        margin-top: 0;
    }
    
    input[type=submit] {
        width: 100%;
        margin-top: 0;
    }
    
    .style4 {
        font-size: 18px;
    }
    
    input[type=text] {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    .container {
        margin: 10px;
        padding: 15px;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    #header {
        padding: 15px;
    }
    
    .style1 {
        font-size: 16px;
    }
    
    .style2 {
        font-size: 14px;
        padding: 6px;
    }
    
    .style3,
    .style5 {
        font-size: 16px;
    }
    
    .style4 {
        font-size: 16px;
    }
    
    input[type=submit] {
        font-size: 16px;
        padding: 12px 20px;
    }
}

/* Print Styles
   ========================================================================== */
@media print {
    body {
        background: white;
    }
    
    #wrapper2 {
        box-shadow: none;
        background: white;
    }
    
    #header {
        background: #f0f0f0;
        color: black;
    }
    
    .main {
        background: white;
    }
    
    .search-btn {
        animation: none;
    }
    
    img[src*="sound2.png"] {
        display: none;
    }
}