/*
 * ZUZU AI Blog — структура и вид по образцу Sweet Berries
 * Палитра: тёмно-фиолетовый #1E0924, акцент маджента #CC29B1
 */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #1E0924 !important;
    color: #ffffff !important;
    font-family: 'Ubuntu', sans-serif !important;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.sweet-header {
    text-align: center;
    padding: 10px 0 15px;
    border-bottom: none;
    margin-bottom: 15px;
    position: relative;
}
.sweet-header .site-logo {
    display: inline-block;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 12px;
}
.sweet-header .site-logo span { color: #CC29B1; }
.sweet-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.sweet-header .subtitle {
    font-size: 20px;
    color: #CC29B1;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.sweet-header .nav {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.sweet-header .nav a {
    color: #E6D7EE;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}
.sweet-header .nav a:hover { color: #CC29B1; }

/* Service Banner */
.service-banner {
    background: linear-gradient(135deg, rgba(204,41,177,0.18), rgba(255,107,107,0.06));
    border-radius: 16px;
    padding: 40px;
    margin: 20px 0 60px;
    text-align: center;
    border: 1px solid rgba(204,41,177,0.4);
    position: relative;
    overflow: hidden;
}
.service-banner::before {
    content: '✨';
    position: absolute;
    top: 20px; right: 20px;
    font-size: 60px;
    opacity: 0.1;
}
.service-banner h2 {
    color: #ffffff !important;
    margin-bottom: 20px;
    font-size: 28px;
}
.service-banner p {
    color: #C9B8D4;
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
}
/* Список преимуществ — каждое с новой строки */
.service-advantages {
    list-style: none;
    padding: 0;
    margin: 0 auto 25px;
    max-width: 800px;
    text-align: center;
    display: inline-block;
}
.service-advantages li {
    color: #C9B8D4;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 0;
    text-align: left;
}
.service-advantages li:last-child {
    margin-bottom: 0;
}
.service-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.service-button {
    display: inline-block;
    background-color: #CC29B1;
    color: white !important;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.service-button:hover {
    background-color: transparent;
    border-color: #CC29B1;
    color: #CC29B1 !important;
    transform: translateY(-3px);
}

/* Search wrapper */
.search-wrapper {
    margin-bottom: 40px;
    padding: 25px;
    background: transparent;
    border-radius: 16px;
    border: none;
    text-align: center;
    position: relative;
}
.search-wrapper .section-title {
    margin-top: 0;
    margin-bottom: 20px;
}
.search-form { position: relative; max-width: 700px; margin: 0 auto; }
.searchbox {
    width: 100%;
    padding: 18px 60px 18px 24px;
    font-size: 17px;
    font-family: 'Ubuntu', sans-serif;
    background: #2A1033;
    border: 1px solid rgba(204,41,177,0.35);
    border-radius: 14px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s;
}
.searchbox::placeholder { color: #8A7299; }
.searchbox:focus {
    border-color: #CC29B1;
    box-shadow: 0 0 0 3px rgba(204,41,177,0.18);
}
.search-submit {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 14px;
    display: flex;
    align-items: center;
}
.search-submit svg { stroke: #CC29B1; }
.search-hint {
    color: #8A7299;
    font-size: 13px;
    margin-top: 15px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.post-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s;
    border: 1px solid rgba(204,41,177,0.15);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.post-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #CC29B1, #8A1F8F);
    border-radius: 16px 16px 0 0;
}
.post-card:hover {
    transform: translateY(-10px);
    border-color: #CC29B1;
    box-shadow: 0 15px 35px rgba(204,41,177,0.2);
    background: linear-gradient(145deg, rgba(204,41,177,0.1), rgba(204,41,177,0.04));
}
.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.game-tag-link {
    display: inline-block;
    background-color: rgba(204,41,177,0.2);
    color: #E39BE0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(204,41,177,0.3);
    text-decoration: none;
    transition: all 0.2s ease;
}
.game-tag-link:hover {
    background-color: rgba(204,41,177,0.4);
    color: #ffffff;
    border-color: #CC29B1;
    transform: translateY(-1px);
}
.post-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 18px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
    flex-grow: 1;
}
.post-card:hover .post-title { color: #CC29B1; }
.post-excerpt {
    color: #C9B8D4;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
    flex-grow: 2;
}
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.read-more {
    display: inline-block;
    background-color: #CC29B1;
    color: white !important;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s;
}
.read-more:hover {
    background-color: #E040C4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204,41,177,0.3);
}
.post-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

/* Секция заголовка */
.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: #ffffff;
}
.section-title-center { text-align: center; }

/* Single post */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}
.single-post-content h1 { font-size: 34px; border-bottom: 2px solid #CC29B1; padding-bottom: 12px; margin-bottom: 24px; line-height: 1.3; }
.single-post-content h2 { font-size: 26px; color: #CC29B1; margin: 34px 0 16px; }
.single-post-content h3 { font-size: 21px; color: #E39BE0; margin: 28px 0 14px; }
.single-post-content p { margin-bottom: 20px; font-size: 17px; color: #C9B8D4; line-height: 1.75; }
.single-post-content ul, .single-post-content ol { margin: 0 0 20px 24px; }
.single-post-content li { color: #C9B8D4; font-size: 17px; margin-bottom: 8px; line-height: 1.7; }
.single-post-content img { max-width: 100%; height: auto; border-radius: 14px; margin: 20px 0; display: block; }
.single-post-content a { color: #CC29B1; }
.single-post-content strong, .single-post-content b { color: #ffffff; }

/* Таблицы */
.single-post-content table {
    width: 100%;
    background: transparent !important;
    border-collapse: collapse !important;
    margin: 24px 0;
}
.single-post-content table th {
    background: #CC29B1 !important;
    color: #fff !important;
    padding: 12px 14px;
    text-align: left;
    font-size: 15px;
}
.single-post-content table td {
    background: transparent !important;
    color: #E0D5E8 !important;
    padding: 12px 14px;
    font-size: 15px;
}
.single-post-content table th,
.single-post-content table td {
    border: 1px solid #CC29B1 !important;
}

/* Blockquote */
.single-post-content blockquote {
    background: #2A1033;
    border-left: 4px solid #CC29B1;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
}
.single-post-content blockquote p { margin-bottom: 0; }

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #CC29B1;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
}
.back-link:hover { color: #ffffff; padding-left: 5px; }

/* Breadcrumbs */
.breadcrumbs {
    color: #8A7299;
    font-size: 14px;
    margin-bottom: 18px;
}
.breadcrumbs a { color: #CC29B1; text-decoration: none; }

/* Footer */
footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 30px;
    border-top: 1px solid #3A1B45;
    color: #8A7299;
    font-size: 14px;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}
.footer-links a {
    color: #CC29B1;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}
.footer-links a:hover { color: #ffffff; text-decoration: underline; }

/* CTA в конце статьи */
.post-cta {
    background: linear-gradient(135deg, rgba(204,41,177,0.18), rgba(138,31,143,0.1));
    border: 1px solid rgba(204,41,177,0.4);
    border-radius: 16px;
    padding: 32px;
    margin: 40px 0 20px;
    text-align: center;
}
.post-cta h3 { color: #ffffff !important; font-size: 22px; margin: 0 0 12px; }
.post-cta p { color: #C9B8D4; margin-bottom: 20px; font-size: 16px; }
.post-cta .service-button { font-size: 17px; padding: 15px 32px; }

@media (max-width: 768px) {
    .container { padding: 15px 10px !important; }
    .sweet-header h1 { font-size: 30px; }
    .sweet-header .site-logo { font-size: 30px; }
    .sweet-header .subtitle { font-size: 16px; }
    .sweet-header .nav { gap: 16px; }
    .sweet-header .nav a { font-size: 14px; }
    .posts-grid { grid-template-columns: 1fr !important; gap: 25px !important; }
    .post-card { padding: 20px !important; }
    .service-banner { padding: 18px 14px !important; margin: 10px 0 25px !important; border-radius: 12px !important; }
    .service-banner::before { font-size: 40px !important; top: 10px !important; right: 10px !important; }
    .service-banner h2 { font-size: 17px !important; margin-bottom: 8px !important; line-height: 1.3 !important; }
    .service-banner p { font-size: 12px !important; margin-bottom: 12px !important; line-height: 1.4 !important; }
    .service-advantages { margin: 0 auto 12px !important; }
    .service-advantages li { font-size: 12px !important; line-height: 1.5 !important; margin-bottom: 4px !important; }
    .service-buttons { flex-direction: row !important; align-items: center !important; gap: 8px !important; justify-content: center !important; }
    .service-button { width: auto !important; flex: 1 1 0 !important; max-width: none !important; margin-bottom: 0 !important; padding: 9px 10px !important; font-size: 12px !important; border-radius: 8px !important; }
    .footer-links { flex-direction: column; gap: 15px; }
    .section-title { font-size: 24px; }
    .single-post-content h1 { font-size: 25px; }
    .single-post-content h2 { font-size: 21px; }
    .single-post-content h3 { font-size: 18px; }
    .single-post-content p, .single-post-content li { font-size: 16px; }
    .single-post-content table { font-size: 13px; }
    .single-post-content table th, .single-post-content table td { padding: 8px 9px; font-size: 13px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1E0924; }
::-webkit-scrollbar-thumb { background: #CC29B1; border-radius: 4px; }
