/* Bodisz Website Styles - Optimized and Organized */

/* Base Typography */
body, h1, h3, p {
    font-family: Helvetica, Arial, sans-serif;
}

body {
    font-size: 24px;
    line-height: 1.6;
}

h1 {
    letter-spacing: 6px;
}

/* Images */
img {
    margin-bottom: 12px;
    max-width: 100%;
    height: auto;
}

img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Active Menu Item */
.ui.menu .active.item {
    border-bottom: 3px solid #2196F3 !important;
    font-weight: bold;
}

/* Service Cards */
.service-cards {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.service-card h3 {
    color: #2196F3;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Dropdown Menu Fixes */
.ui.menu .ui.dropdown .menu {
    z-index: 1001;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
}

/* Responsive Design */
@media only screen and (min-width: 767px) {
    .lg { display: block; }
    .sm { display: none; }
    .service-cards { grid-template-columns: repeat(3, 1fr); }
}

@media only screen and (max-width: 767px) {
    .sm { display: block; }
    .lg { display: none; }
    .service-cards { grid-template-columns: 1fr; }
    
    body { font-size: 18px; }
    
    /* Mobile Menu Improvements */
    #sidenav {
        max-width: 80%;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    
    #sidenav .header.item {
        padding: 15px 20px !important;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .ui.menu {
    background-color: #1a1a1a;
}

body.dark-mode .ui.menu .item {
    color: #e0e0e0 !important;
}

body.dark-mode .ui.menu .item:hover {
    background-color: #2a2a2a !important;
}

body.dark-mode .service-card {
    background: #1e1e1e;
    color: #f0f0f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}

body.dark-mode .service-card:hover {
    box-shadow: 0 6px 10px rgba(0,0,0,0.5);
}

body.dark-mode .service-card h3 {
    color: #64B5F6;
}

body.dark-mode .service-card p {
    color: #ccc;
}

body.dark-mode footer {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .ui.grey.inverted.tag.label,
body.dark-mode .ui.label,
body.dark-mode .ui.tag.label,
body.dark-mode .ui.label .detail {
    color: #f0f0f0 !important;
    background-color: #333 !important;
}

body.dark-mode hr {
    border-color: #333;
}

body.dark-mode img {
    filter: brightness(0.9);
}

body.dark-mode .ui.header,
body.dark-mode .ui.header .sub.header {
    color: #f0f0f0 !important;
}

body.dark-mode .ui.header .sub.header {
    opacity: 0.8;
}

/* Dark Mode Dropdown Styles */
body.dark-mode .ui.dropdown .menu {
    background-color: #2d2d2d;
    border: 1px solid #444;
}

body.dark-mode .ui.dropdown .menu .item {
    color: #f0f0f0 !important;
}

body.dark-mode .ui.dropdown .menu .item:hover {
    background-color: #3a3a3a !important;
}

body.dark-mode .ui.message {
    background-color: #2d2d2d;
    color: #f0f0f0;
    border: 1px solid #444;
}

body.dark-mode .ui.warning.message {
    background-color: #3a2e1e !important;
    border-color: #5c4a2a !important;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}
