/* Typography & Base */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --dark-text: #1a1a1a;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --accent-color: #ea4335;
    --kraken-blue: #0d47a1;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    font-size: 16px;
    background: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1.5em;
    color: var(--dark-text);
}

/* Content Post Styles */
.content-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
}

.content-post p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.75em;
    color: #2c2c2c;
}

.content-post p:first-of-type {
    font-size: 1.25rem;
    color: var(--dark-text);
}

.content-post h2 {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-top: 2.5em;
}

.content-post h3 {
    color: #2c2c2c;
    margin-top: 2em;
}

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

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--kraken-blue);
    border-bottom-color: var(--primary-color);
}

.content-post a {
    font-weight: 500;
    color: var(--primary-color);
}

.content-post a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--kraken-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.4);
    color: #fff;
    border-bottom: none;
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #2d9348;
}

/* Lists */
ul, ol {
    margin: 1.5em 0;
    padding-left: 2em;
    color: var(--dark-text);
}

.content-post ul li,
.content-post ol li {
    margin-bottom: 0.75em;
    line-height: 1.8;
    color: #2c2c2c;
}

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

.content-post ul li {
    padding-left: 30px;
    position: relative;
}

.content-post ul li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.content-post ol {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.content-post ol li {
    counter-increment: item;
    padding-left: 40px;
    position: relative;
}

.content-post ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    background: var(--primary-color);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: var(--primary-color);
}

th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid var(--kraken-blue);
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--dark-text);
}

tr:hover {
    background: var(--light-bg);
}

tr:last-child td {
    border-bottom: none;
}

/* Blockquotes */
blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    background: var(--light-bg);
    border-left: 5px solid var(--primary-color);
    font-style: italic;
    color: #2c2c2c;
    border-radius: 0 6px 6px 0;
}

blockquote p {
    margin: 0;
    color: #2c2c2c;
}

/* Code */
code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--dark-text);
}

pre {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 2em 0;
}

pre code {
    background: transparent;
    color: #f8f8f2;
    padding: 0;
}

/* Forms */
.contact-form,
.feedback-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--dark-text);
    transition: border-color 0.3s ease;
    background: #fff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

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

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

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26, 115, 232, 0.4);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    background: var(--kraken-blue);
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

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

.chat-header {
    background: var(--primary-color);
    color: #fff;
    padding: 16px;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--light-bg);
}

.chat-input-area {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 20px;
}

.chat-input-area button {
    padding: 10px 20px;
    border-radius: 20px;
}

/* Contact Info */
.contact-info {
    padding: 40px 20px;
    background: var(--light-bg);
    border-radius: 12px;
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--dark-text);
}

.contact-item i {
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-item a {
    color: var(--dark-text);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .content-post {
        padding: 20px 15px;
    }
    
    .content-post p {
        font-size: 1rem;
    }
    
    .content-post p:first-of-type {
        font-size: 1.125rem;
    }
    
    .content-post h2 {
        padding-left: 15px;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 10px 12px;
    }
    
    .contact-form,
    .feedback-form {
        padding: 20px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        height: 450px;
        right: 20px;
    }
    
    blockquote {
        padding: 15px 20px;
    }
    
    .btn,
    button[type="submit"],
    input[type="submit"] {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .content-post {
        padding: 15px 10px;
    }
    
    .content-post ul li,
    .content-post ol li {
        padding-left: 25px;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    .live-chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .chat-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    .live-chat-widget,
    .chat-window,
    .contact-form,
    .feedback-form {
        display: none !important;
    }
    
    body {
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}
