/*
Theme Name: LDC Profile
Theme URI: https://ldcuong.com/
Author: Lai Dinh Cuong
Author URI: https://facebook.com/skylarkcob/
Description: This theme is created by Lai Dinh Cuong.
Real Theme Name: Cuong Profile
Used For: ldcuong.com
Created Date: 08/09/2025
Last Updated: 24/11/2025
Coder: laidinhcuongvn@gmail.com
Version: 1.0.1
Tested up to: 6.8
Requires at least: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ldc-profile
Tags: one-column, two-columns, left-sidebar, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, sticky-post, theme-options, threaded-comments, translation-ready

Copyright (c) 2025, Lai Dinh Cuong.
*/

:root {
    --theme-primary: darkred;
    --theme-primary-light: #b30000;
    --theme-link: rgb(46, 105, 255);
    --theme-border: rgb(222, 224, 225);
    --theme-meta: rgb(99, 100, 102);
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #eee;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

.overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.card {
    background: rgba(255, 255, 255, 0.85);
    padding: 20px 30px;
    border-radius: 20px;
    text-align: center;
    width: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    font-family: "Roboto", sans-serif;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-top: -80px;
    border: 4px solid #fff;
}

.card > img.avatar {
    cursor: pointer;
}

h1 {
    margin: 10px 0;
}

.social a {
    margin: 0 10px;
    font-size: 24px;
    color: #333;
    transition: color 0.3s;
}

.social a:hover {
    color: var(--theme-primary);
}

.contact {
    margin-top: 15px;
    font-size: 14px;
    color: #444;
}

.status {
    margin-top: 20px;
}

.status textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: none;
    line-height: 17px;
}

.status button {
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    background: var(--theme-primary);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

button:hover,
.btn:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.searchform input[type="submit"]:hover,
.status button:hover {
    background: var(--theme-primary-light);
}

.status button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.posted {
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    max-height: 202px;
    overflow-y: auto;
    position: relative;
    line-height: 22px;
}

.posted.fixed {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    margin: 0;
    max-height: none;
    border-radius: 0;
}

.posted > i.fa-xmark {
    position: absolute;
    right: 10px;
    top: 10px;
    opacity: .5;
    cursor: pointer;
    z-index: 999999999;
    display: none;
}

.posted.fixed > i.fa-xmark {
    display: block;
}

.posted > i.fa-xmark:hover {
    opacity: 1;
}

.status-content > *:first-child {
    margin-top: 0;
}

.posted > ul {
    margin: 0;
    padding-left: 17px;
}

.posted > ul > li {
    overflow: hidden;
    list-style: none;
    text-align: left;
}

.posted > ul > li > .date {
    margin-right: 10px;
    color: #666;
}

blockquote {
    border-left: 5px solid var(--theme-link);
    margin: 0 0 20px 0;
    padding: 15px 20px;
    font-style: italic;
    background: #f9f9f9;
    color: #333;
}

blockquote footer {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    text-align: right;
}

.status blockquote footer a {
    color: #555;
    text-decoration: none;
}

.status blockquote footer a:hover {
    color: var(--theme-link);
    text-decoration: underline;
}

.falling-flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* không che click */
    overflow: hidden;
}

.flower {
    position: absolute;
    top: -20px;
    animation-name: fall;
    animation-timing-function: linear;
    color: pink;
}

@keyframes fall {
    to {
        transform: translateY(110vh) rotate(360deg);
    }
}

.light-rays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0; /* luôn nằm dưới card */
}

.light {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(255, 255, 200, 0.9) 0%, rgba(255, 255, 200, 0) 70%);
    border-radius: 50%;
    animation: floatLight linear forwards;
}

@keyframes floatLight {
    from {
        transform: translateY(0px) scale(0.5);
    }
    to {
        transform: translateY(-100px) scale(1.2);
        opacity: 0;
    }
}

.season-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.season-item {
    position: absolute;
    top: -20px;
    animation-name: fallSeason;
    animation-timing-function: linear;
}

@keyframes fallSeason {
    to {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.7;
    }
}

#chat-bubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: var(--theme-link);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-avatar:hover {
    transform: scale(1.1);
}

.chat-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 240px;
}

.chat-message {
    background: #fff;
    padding: 8px 12px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.6s ease;
}

.chat-message::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fancybox-container {
    z-index: 999999;
}

body:not(.home) {
    background-color: rgb(247, 247, 248);
}

.site {
    padding: 24px;
}

@media screen and (min-width: 1101px) {
    .container {
        max-width: 1100px;
        margin: 0 auto;
    }
}

.tagcloud > *,
.tags > * {
    background-color: rgb(230, 231, 232);
    color: rgb(40, 40, 41);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: inline-flex;
}

.tagcloud > * ~ *,
.tags > * ~ * {
    margin-left: 8px;
}

.tagcloud > *:hover,
.tags > *:hover {
    color: var(--theme-link);
}

.sidebar > *,
.c-box {
    box-shadow: rgba(0, 0, 0, 0.04) 0 1px 1px;
    border: 1px solid var(--theme-border);
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 8px;
}

.details .avatar {
    width: 36px;
    height: 36px;
    padding: 0;
    margin: 0;
    border: none;
    display: block;
}

.c-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.details .author-name {
    display: flex;
    align-items: center;
}

.details .author-name a {
    color: var(--theme-link);
    text-decoration: none;
}

.details .author-name a:hover {
    text-decoration: underline;
}

.site,
.entry-content {
    line-height: 160%;
    font-size: 18px;
}

.entry-content {
    margin-top: 20px;
}

.entry-content h2 {
    font-size: 22px;
    line-height: 30px;
}

.entry-content h3 {
    font-size: 20px;
    line-height: 26px;
}

.entry-content div {
    overflow: hidden;
}

.entry-content li ul {
    margin-bottom: 10px;
}

.entry-content li + li {
    margin-top: 5px;
}

.entry-content p:first-child {
    margin-top: 0;
}

.status-content table,
.entry-content table {
    border-collapse: collapse;
    font-size: 16px;
    line-height: 22px;
}

.status-content table th,
.status-content table td,
.entry-content table th,
.entry-content table td {
    border: 1px solid #ddd;
    padding: 5px 10px;
}

.details .author-name > * {
    margin-top: 0;
    margin-bottom: 8px;
    position: relative;
    line-height: 1;
}

.details .author-name > * ~ * {
    padding-left: 8px;
    margin-left: 3px;
}

.details .author-name > * ~ *:before {
    content: "·";
    color: var(--theme-meta);
    font-size: 19px;
    display: inline-flex;
    align-items: center;
    margin: 0;
    line-height: 1;
    align-self: center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.details .meta {
    font-size: 14px;
    line-height: 1;
}

.meta time {
    color: var(--theme-meta);
}

h2.entry-title,
h1.entry-title {
    color: rgb(40, 40, 41);
    font-size: 21px;
    line-height: 1.4;
}

h2.entry-title a {
    color: rgb(40, 40, 41);
}

h2.entry-title {
    margin-top: 0;
}

figcaption {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 5px;
}

figcaption p {
    margin: 0;
}

figure,
figure img,
figcaption {
    max-width: 100%;
    height: auto;
}

figure img {
    display: block;
}

.site > .container {
    display: flex;
    gap: 16px;
}

.main-content {
    width: 100%;
}

@media screen and (min-width: 1101px) {
    .sidebar {
        flex-basis: 354px;
        max-width: 354px;
    }

    .main-content {
        flex-basis: calc(100% - 370px);
        max-width: calc(100% - 370px);
    }
}

.sidebar ul,
.sidebar ol {
    padding: 0;
    list-style: none;
    margin: 0 0 24px;
}

.sidebar h2 {
    border-bottom: 1px solid var(--theme-border);
    color: #282829;
    font-size: 15px;
    padding-bottom: 8px;
}

.searchform input[type="text"],
.searchform input[type="search"] {
    height: 36px;
    border: 1px solid var(--theme-border);
    padding: 8px;
}

button,
.btn,
.button,
button[type="submit"],
input[type="submit"],
.searchform input[type="submit"] {
    background-color: var(--theme-primary);
    color: #fff;
    border: none;
    height: 36px;
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar li {
    padding: 4px;
    margin-bottom: 0;
}

.sidebar a {
    color: var(--theme-link);
    text-decoration: none;
}

.sidebar {
    font-size: 15px;
    line-height: 1.5;
    width: 100%;
}

.sidebar a:hover {
    text-decoration: underline;
}

.comment-form {
    font-size: 14px;
    line-height: 1.4;
}

.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form select,
.comment-form input[type="text"],
.comment-form textarea {
    display: block;
    border: 1px solid var(--theme-border);
    padding: 8px;
}

.comment-form p > label:first-child {
    margin-bottom: 5px;
    display: inline-block;
}

.comment-form textarea {
    width: 100%;
    font-family: arial, sans-serif;
    line-height: 1.4;
}

.site a {
    color: var(--theme-link);
    text-decoration: none;
}

.site a:hover {
    text-decoration: underline;
}

.site a.button,
.site a.btn {
    color: #fff;
    padding: 8px 12px;
}

.required {
    color: var(--theme-primary);
}

input[type="checkbox"] {
    vertical-align: -1px;
}

#cancel-comment-reply-link {
    background-color: var(--theme-primary);
    color: #fff;
    padding: 5px 10px;
    margin-left: 8px;
    border-radius: 4px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 15px;
    text-decoration: none;
}

#cancel-comment-reply-link:hover {
    background-color: var(--theme-primary-light);
}

.commentlist {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.4;
}

.commentlist > li:not(:last-child) {
    border-bottom: 1px solid var(--theme-border);
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.commentlist .avatar {
    width: 42px;
    height: 42px;
    border: none;
    padding: 0;
    margin: 0 8px 0 0;
    float: left;
}

.comment-meta a {
    color: var(--theme-meta);
    font-size: 15px;
}

.commentlist ul {
    list-style: none;
}

.commentlist ul li {
    border-top: 1px solid var(--theme-border);
    padding-top: 10px;
    margin-top: 14px;
}

.reply {
    text-align: right;
    position: absolute;
    right: 0;
    top: 5px;
}

.comment-body {
    position: relative;
}

.wp-calendar-table {
    width: 100%;
}

.pagination {
    margin-top: 24px;
}

.pagination .current,
.pagination a {
    border: 1px solid var(--theme-border);
    padding: 0 10px;
    display: inline-block;
    margin: 0;
    background: #fff;
    color: #333;
    text-decoration: none;
}

.pagination a:hover {

}

.pagination a:hover,
.pagination .current {
    text-decoration: none;
    background: var(--theme-primary);
    color: #fff;
}

@media screen and (max-width: 1100px) {
    .site > .container {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 500px) {
    .comment-form input[type="email"],
    .comment-form input[type="url"],
    .comment-form select,
    .comment-form input[type="text"],
    .comment-form textarea {
        width: 100%;
    }
}

pre {
    background-color: #fafafa;
    padding: 16px;
    overflow: auto;
}

:root :where(p.has-background) {
    background-color: #fafafa;
}