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

html {
    scroll-behavior: smooth;
}

.loader-diamond {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #BFA07F, #8F9779);
    transform: rotate(45deg);
    animation: diamondPulse 1.5s ease-in-out infinite;
}

@keyframes diamondPulse {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(45deg) scale(0.8);
        opacity: 0.6;
    }
}

#page-transition.active {
    transform: translateX(0);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '◇';
    position: absolute;
    left: -1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #BFA07F;
}

.nav-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover {
    color: #BFA07F;
}

.nav-logo {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: rotate(45deg);
}

.diamond-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.diamond-divider::before,
.diamond-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #A0937D, transparent);
}

.diamond-divider span {
    color: #BFA07F;
}

.post-card {
    position: relative;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-top: 3px solid #BFA07F;
    border-left: 3px solid #BFA07F;
    transition: all 0.4s ease;
}

.post-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 3px solid #8F9779;
    border-right: 3px solid #8F9779;
    transition: all 0.4s ease;
}

.post-card:hover::before,
.post-card:hover::after {
    width: 100%;
    height: 100%;
}

.post-card:hover {
    transform: translateX(10px);
    border-color: rgba(191, 160, 127, 0.2);
}

.timeline-post {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-post::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #BFA07F;
    transform: rotate(45deg);
}

.timeline-post::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2rem;
    width: 2px;
    height: calc(100% + 1rem);
    background: linear-gradient(180deg, #BFA07F, transparent);
}

.timeline-post:last-child::after {
    display: none;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-tag::before {
    content: '◇';
    font-size: 0.6rem;
}

.category-tag:hover {
    background: #BFA07F;
    color: white;
}

.category-tag.sage {
    color: #8F9779;
    border: 1px solid #8F9779;
}

.category-tag.sage:hover {
    background: #8F9779;
    color: white;
}

.category-tag.stone {
    color: #A0937D;
    border: 1px solid #A0937D;
}

.category-tag.stone:hover {
    background: #A0937D;
    color: white;
}

.quote-block {
    position: relative;
    padding: 2rem 3rem;
    margin: 2rem 0;
    border-left: none;
    background: linear-gradient(135deg, rgba(191, 160, 127, 0.1), rgba(143, 151, 121, 0.1));
}

.quote-block::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    color: #BFA07F;
    opacity: 0.3;
}

.quote-block::after {
    content: '◇';
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    font-size: 1rem;
    color: #8F9779;
}

.code-block {
    position: relative;
    margin: 2rem 0;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(191, 160, 127, 0.3);
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #BFA07F, #8F9779, #A0937D);
    z-index: 1;
}

.code-block pre {
    padding: 2rem 1.5rem 1.5rem;
    background: #F5F0EB;
    overflow-x: auto;
    color: #4A4540;
}

.dark .code-block pre {
    background: #3A3530;
    color: #F5F0EB;
}

.code-block code {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(191, 160, 127, 0.1);
    border: 1px solid rgba(191, 160, 127, 0.3);
    color: #4A4540;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.dark .copy-btn {
    background: rgba(245, 240, 235, 0.1);
    border-color: rgba(245, 240, 235, 0.2);
    color: #F5F0EB;
}

.copy-btn:hover {
    background: #BFA07F;
    border-color: #BFA07F;
    color: white;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.diamond-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        linear-gradient(45deg, #BFA07F 25%, transparent 25%),
        linear-gradient(-45deg, #BFA07F 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #BFA07F 75%),
        linear-gradient(-45deg, transparent 75%, #BFA07F 75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
}

.guestbook-entry {
    position: relative;
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(191, 160, 127, 0.05), rgba(143, 151, 121, 0.05));
    transition: all 0.4s ease;
}

.guestbook-entry::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 8px;
    height: 8px;
    background: #8F9779;
    transform: rotate(45deg);
}

.guestbook-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.easter-egg {
    cursor: pointer;
    transition: all 0.3s ease;
}

.easter-egg.active {
    animation: diamondSpin 1s ease-in-out;
}

@keyframes diamondSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-section {
    position: relative;
    padding: 4rem 0;
}

.about-diamond {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid #BFA07F;
    transform: rotate(45deg);
    opacity: 0.1;
}

.about-diamond.one {
    top: 10%;
    right: 10%;
}

.about-diamond.two {
    bottom: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
}

.search-input {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    background: transparent;
    border: 2px solid #A0937D;
    outline: none;
    transition: all 0.4s ease;
    font-family: 'Playfair Display', serif;
}

.search-input:focus {
    border-color: #BFA07F;
    box-shadow: 0 0 0 4px rgba(191, 160, 127, 0.1);
}

.search-input::placeholder {
    color: #A0937D;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #BFA07F;
    color: #BFA07F;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.btn-primary:hover {
    background: #BFA07F;
    color: white;
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '◇';
    font-size: 0.7rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    font-family: 'Playfair Display', serif;
    margin: 2rem 0 1rem;
}

.markdown-content p {
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.markdown-content a {
    color: #BFA07F;
    text-decoration: none;
    border-bottom: 1px solid #BFA07F;
    transition: all 0.3s ease;
}

.markdown-content a:hover {
    background: #BFA07F;
    color: white;
}

.markdown-content img {
    max-width: 100%;
    margin: 2rem 0;
}

.not-found {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.not-found .big-diamond {
    font-size: 8rem;
    color: #BFA07F;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

.admin-panel {
    border: 1px solid rgba(191, 160, 127, 0.2);
    padding: 2rem;
}

.admin-input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid #A0937D;
    margin-bottom: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.admin-input:focus {
    border-color: #BFA07F;
}

.admin-textarea {
    min-height: 300px;
    resize: vertical;
}

@media (max-width: 768px) {
    .diamond-divider {
        font-size: 0.875rem;
    }
    
    .timeline-post {
        padding-left: 2rem;
    }
    
    .about-diamond {
        display: none;
    }
}
