/*
Theme Name: Telegram Style Theme
Description: A modern WordPress theme inspired by Telegram's website design with customizable header and footer
Version: 1.0
Author: Custom Theme
*/

/* CSS Variables for theming */
:root {
    --text-color: #000;
    --second-text-color: #7d7f81;
    --accent-btn-color: #2481cc;
    --accent-color-hover: #1a8ad5;
    --body-bg: #fff;
    --box-bg: #fff;
    --box-bg-blured: rgba(255, 255, 255, 0.84);
    --accent-link-color: #2481cc;
}

/* Dark theme variables */
.dark-theme {
    --text-color: #fff;
    --accent-btn-color: #1c93e3;
    --body-bg: #000;
    --box-bg: #1e1e1e;
    --box-bg-blured: rgba(34, 34, 34, 0.84);
    --accent-link-color: #3ca1eb;
}

/* Base styles */
body {
    font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica,
        Verdana, sans-serif;
    background: var(--body-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

html.native_fonts body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol";
}

/* Container */
.container {
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
    }
}

/* Header styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--box-bg-blured);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    border-bottom: 1px solid #e8e8e8;
}

.header-inner {
    display: flex;
    /* justify-content: space-between; */
    /* align-items: center; */
    padding: 10px 0;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-link-color);
    text-decoration: none;
}

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

.main-navigation a {
    color: var(--accent-link-color);
    text-decoration: none;
    font-size: 15px;
    padding: 10px 0;
    position: relative;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--accent-color-hover);
}

.main-navigation a:after {
    display: block;
    height: 3px;
    background: #179cde;
    position: absolute;
    border-radius: 2px 2px 0 0;
    content: "";
    left: 4px;
    right: 4px;
    opacity: 0;
    bottom: -1px;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform-origin: bottom;
    transform: scaleX(0.3) scaleY(0);
}

.main-navigation a:hover:after,
.main-navigation .current-menu-item a:after {
    opacity: 1;
    transform: scaleX(1) scaleY(1);
}

/* Main content */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 200px);
}

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

/* Footer styles */
.site-footer {
    border-top: 1px solid #e8e8e8;
    max-width: 925px;
    margin: 10px auto 0;
    padding: 28px 0 34px;
}

.footer-columns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    margin: 0 auto;
    max-width: 800px;
    padding-left: 0;
}

.footer-column {
    flex: 0 1 auto;
    align-self: auto;
}

.footer-column.main-column {
    flex: 0 1 210px;
}

.footer-column h5 {
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 9px;
    color: var(--text-color);
}

.footer-column h5 a {
    color: inherit;
    text-decoration: none;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    font-size: 14px;
    line-height: 23px;
    margin: 0;
    padding: 0;
}

.footer-column ul li a {
    color: var(--accent-link-color);
    text-decoration: none;
}

.footer-column ul li a:hover {
    text-decoration: underline;
}

.footer-description {
    font-size: 13px;
    color: var(--second-text-color);
    margin-top: 10px;
}

/* Mobile footer */
.footer-mobile {
    display: none;
}

/* Responsive design */
@media (max-width: 1000px) {
    .footer-columns {
        display: none;
    }

    .footer-mobile {
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .footer-mobile .footer-column {
        margin: 0 6px;
    }

    .footer-mobile .footer-column h5 {
        color: var(--accent-link-color);
        font-size: 12px;
        font-weight: normal;
        text-transform: uppercase;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .site-main {
        margin-top: 60px;
    }

    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation ul {
        gap: 20px;
    }

    .main-navigation a {
        font-size: 14px;
    }
}

/* WordPress specific styles */
.wp-block-group {
    margin-bottom: 2em;
}

.wp-block-image {
    margin-bottom: 1em;
}

.entry-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.entry-content {
    line-height: 1.6;
    color: var(--text-color);
}

.entry-content p {
    margin-bottom: 1em;
}

.entry-content a {
    color: var(--accent-link-color);
    text-decoration: none;
}

.entry-content a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn,
.wp-block-button__link {
    background-color: var(--accent-btn-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.btn:hover,
.wp-block-button__link:hover {
    background-color: var(--accent-color-hover);
    color: white;
    text-decoration: none;
}

/* Customizer styles */
.customize-control-telegram-header-options,
.customize-control-telegram-footer-options {
    margin-bottom: 20px;
}

.customize-control-telegram-header-options label,
.customize-control-telegram-footer-options label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .side_blog_entries {
        gap: 8px;
        margin: 15px 0;
    }

    .side_blog_entry {
        padding: 10px;
    }

    .side_blog_title {
        font-size: 13px;
    }
}
