/* ====================================
   TYPOGRAPHY & BASE STYLES
   ==================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #2c3e50;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====================================
   ARTICLE TYPOGRAPHY
   ==================================== */

.content-post,
.single-post .entry-content,
article.post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.content-post h1,
.entry-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.content-post h2,
.entry-content h2 {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 2.5rem 0 1.25rem 0;
    color: #2c3e50;
    border-left: 4px solid #3498db;
    padding-left: 16px;
}

.content-post h3,
.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 2rem 0 1rem 0;
    color: #34495e;
}

.content-post h4,
.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 1.75rem 0 0.875rem 0;
    color: #4a5568;
}

.content-post p,
.entry-content p {
    margin: 0 0 1.5rem 0;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4a5568;
}

.content-post p:last-child {
    margin-bottom: 0;
}

.content-post strong,
.entry-content strong {
    font-weight: 600;
    color: #2c3e50;
}

.content-post em,
.entry-content em {
    font-style: italic;
    color: #5a6c7d;
}

/* ====================================
   LINKS
   ==================================== */

a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: #2980b9;
}

.content-post a,
.entry-content a {
    color: #3498db;
    font-weight: 500;
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    padding-bottom: 1px;
}

.content-post a:hover,
.entry-content a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* ====================================
   BUTTONS
   ==================================== */

.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.25);
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.35);
    color: #ffffff;
}

.btn:active,
button:active,
input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.25);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(149, 165, 166, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
    box-shadow: none;
}

.btn-outline:hover {
    background: #3498db;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ====================================
   LISTS
   ==================================== */

.content-post ul,
.content-post ol,
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 2rem;
}

.content-post ul li,
.entry-content ul li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
    position: relative;
}

.content-post ul {
    list-style: none;
}

.content-post ul li::before {
    content: "▸";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.content-post ol {
    counter-reset: list-counter;
    list-style: none;
}

.content-post ol li {
    counter-increment: list-counter;
}

.content-post ol li::before {
    content: counter(list-counter) ".";
    color: #3498db;
    font-weight: 600;
    position: absolute;
    left: -2rem;
}

/* ====================================
   TABLES
   ==================================== */

.content-post table,
.entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.content-post table thead,
.entry-content table thead {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
}

.content-post table th,
.entry-content table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.content-post table td,
.entry-content table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e9ecef;
    color: #4a5568;
}

.content-post table tbody tr:hover,
.entry-content table tbody tr:hover {
    background-color: #f8f9fa;
}

.content-post table tbody tr:last-child td,
.entry-content table tbody tr:last-child td {
    border-bottom: none;
}

/* ====================================
   BLOCKQUOTES
   ==================================== */

.content-post blockquote,
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #5a6c7d;
    position: relative;
}

.content-post blockquote::before {
    content: """;
    font-size: 4rem;
    color: rgba(52, 152, 219, 0.15);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

.content-post blockquote p {
    margin-bottom: 0.5rem;
}

.content-post blockquote p:last-child {
    margin-bottom: 0;
}

/* ====================================
   CODE & PRE
   ==================================== */

.content-post code,
.entry-content code {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #e74c3c;
    border: 1px solid #e9ecef;
}

.content-post pre,
.entry-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
    line-height: 1.6;
}

.content-post pre code,
.entry-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #ecf0f1;
}

/* ====================================
   IMAGES
   ==================================== */

.content-post img,
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.alignleft {
    float: left;
    margin: 0.5rem 2rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 2rem;
}

.aligncenter {
    display: block;
    margin: 2rem auto;
}

/* ====================================
   SPACING & LAYOUT
   ==================================== */

.section-spacing {
    padding: 80px 0;
}

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

.content-wrapper {
    padding: 40px 0;
}

/* ====================================
   CONTACT SECTION
   ==================================== */

.contact-info {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-item i,
.contact-item svg {
    font-size: 24px;
    color: #3498db;
    margin-right: 16px;
    width: 40px;
    text-align: center;
}

.contact-item a {
    color: #2c3e50;
    font-weight: 500;
    border-bottom: none;
}

.contact-item a:hover {
    color: #3498db;
}

/* ====================================
   CONTACT FORM
   ==================================== */

.contact-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-form h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #2c3e50;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9375rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #2c3e50;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ====================================
   LIVE CHAT
   ==================================== */

.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(52, 152, 219, 0.5);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.chat-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.bot {
    align-items: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.chat-message.user .message-bubble {
    background: #3498db;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-message.bot .message-bubble {
    background: #ffffff;
    color: #2c3e50;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.chat-input-wrapper {
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #e9ecef;
    border-radius: 24px;
    font-size: 0.9375rem;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: #3498db;
}

.chat-send {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.9375rem;
}

/* ====================================
   HEADER & LOGO
   ==================================== */

.site-header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-svg {
    width: 50px;
    height: 50px;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

/* ====================================
   NAVIGATION
   ==================================== */

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: #2c3e50;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* ====================================
   FOOTER
   ==================================== */

.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: #bdc3c7;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: #95a5a6;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media (max-width: 1024px) {
    .content-post,
    .single-post .entry-content {
        padding: 30px 20px;
    }
    
    .content-post h1,
    .entry-content h1 {
        font-size: 2rem;
    }
    
    .content-post h2,
    .entry-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .section-spacing {
        padding: 50px 0;
    }
    
    .content-post,
    .single-post .entry-content {
        padding: 24px 16px;
        border-radius: 0;
    }
    
    .content-post h1,
    .entry-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .content-post h2,
    .entry-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .content-post h3,
    .entry-content h3 {
        font-size: 1.25rem;
    }
    
    .content-post p,
    .entry-content p {
        font-size: 1rem;
    }
    
    .content-post table,
    .entry-content table {
        font-size: 0.875rem;
    }
    
    .content-post table th,
    .entry-content table th,
    .content-post table td,
    .entry-content table td {
        padding: 10px 12px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-form,
    .contact-info {
        padding: 24px;
    }
    
    .chat-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
    
    .live-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .alignleft,
    .alignright {
        float: none;
        margin: 1rem 0;
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .content-post h1,
    .entry-content h1 {
        font-size: 1.5rem;
    }
    
    .content-post h2,
    .entry-content h2 {
        font-size: 1.25rem;
        padding-left: 12px;
    }
    
    .content-post blockquote,
    .entry-content blockquote {
        padding: 1rem 1.25rem;
    }
    
    .btn,
    button,
    input[type="submit"] {
        padding: 10px 20px;
        font-size: 0.9375rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-svg {
        width: 40px;
        height: 40px;
    }
}

/* ====================================
   UTILITIES
   ==================================== */

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

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

/* ====================================
   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 {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.chat-button.pulse {
    animation: pulse 2s infinite;
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
    .site-header,
    .site-footer,
    .live-chat-widget,
    .contact-form {
        display: none;
    }
    
    .content-post,
    .entry-content {
        box-shadow: none;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
