/* Typography & Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a1a;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.3);
}

/* Header */
.site-header {
    background: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo-svg {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo-svg {
    transform: rotate(360deg) scale(1.1);
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: #2d3748;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #667eea;
}

.contact-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Main Content */
.main-content {
    padding: 60px 40px;
    min-height: 500px;
}

/* Article Typography */
article h1,
.content-post h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 24px;
    margin-top: 48px;
}

article h2,
.content-post h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2d3748;
    margin-bottom: 20px;
    margin-top: 40px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

article h3,
.content-post h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: #2d3748;
    margin-bottom: 16px;
    margin-top: 32px;
}

article h4,
.content-post h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 12px;
    margin-top: 24px;
}

article p,
.content-post p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #2d3748;
    font-size: 16px;
}

article strong,
.content-post strong {
    font-weight: 700;
    color: #1a202c;
}

article em,
.content-post em {
    font-style: italic;
    color: #4a5568;
}

/* Links */
article a,
.content-post a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

article a:hover,
.content-post a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* Lists */
article ul,
.content-post ul {
    margin: 20px 0 30px 0;
    padding-left: 0;
    list-style: none;
}

article ul li,
.content-post ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #2d3748;
}

article ul li:before,
.content-post ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
    font-size: 18px;
}

article ol,
.content-post ol {
    margin: 20px 0 30px 0;
    padding-left: 30px;
    counter-reset: item;
    list-style: none;
}

article ol li,
.content-post ol li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #2d3748;
    counter-increment: item;
}

article ol li:before,
.content-post ol li:before {
    content: counter(item) ".";
    position: absolute;
    left: -25px;
    color: #667eea;
    font-weight: 700;
}

/* Tables */
article table,
.content-post table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 8px;
}

article th,
.content-post th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 16px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

article td,
.content-post td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
}

article tr:nth-child(even),
.content-post tr:nth-child(even) {
    background: #f7fafc;
}

article tr:hover,
.content-post tr:hover {
    background: #edf2f7;
}

/* Buttons */
.btn,
button,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
    box-shadow: none;
}

.btn-secondary:hover {
    background: #667eea;
    color: #ffffff;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #f7fafc;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
    color: #2d3748;
    background: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

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

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.7);
}

.chat-toggle-btn svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    height: 500px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

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

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 20px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    box-shadow: none;
}

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

.chat-input-area {
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 14px;
    color: #2d3748;
}

.chat-send-btn {
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Blockquote */
article blockquote,
.content-post blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f7fafc;
    border-left: 5px solid #667eea;
    font-style: italic;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
}

/* Code */
article code,
.content-post code {
    background: #2d3748;
    color: #68d391;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

article pre,
.content-post pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

article pre code,
.content-post pre code {
    background: transparent;
    padding: 0;
}

/* Images */
article img,
.content-post img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Footer */
.site-footer {
    background: #2d3748;
    color: #e2e8f0;
    padding: 40px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-contact-item {
    color: #e2e8f0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: #667eea;
}

.footer-copyright {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    font-size: 14px;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    
    .header-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    article h1,
    .content-post h1 {
        font-size: 1.8rem;
    }
    
    article h2,
    .content-post h2 {
        font-size: 1.5rem;
    }
    
    article h3,
    .content-post h3 {
        font-size: 1.25rem;
    }
    
    .contact-form {
        padding: 25px 20px;
        margin: 20px 10px;
    }
    
    .chat-window {
        width: calc(100% - 20px);
        right: 10px;
        left: 10px;
    }
    
    article table,
    .content-post table {
        font-size: 14px;
    }
    
    article th,
    .content-post th,
    article td,
    .content-post td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-svg {
        width: 40px;
        height: 40px;
    }
    
    article h1,
    .content-post h1 {
        font-size: 1.5rem;
    }
    
    article h2,
    .content-post h2 {
        font-size: 1.3rem;
    }
    
    .btn,
    button,
    input[type="submit"] {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .live-chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-toggle-btn {
        width: 50px;
        height: 50px;
    }
}

/* Accessibility */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.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;
}
