/*
Theme Name: SnapGrab
Author: User
Description: Converted from HTML/React.
Version: 1.2
*/

/* --- Reset & Global --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Header Styles --- */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2563eb;
}

.site-logo-img {
    height: 40px;
}

/* Navigation */
.main-navigation {
    display: none;
    /* Mobile default */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.main-navigation.toggled {
    display: block;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-menu li a {
    color: #475569;
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu li a:hover {
    color: #2563eb;
}

@media (min-width: 768px) {
    .main-navigation {
        display: block;
        position: static;
        width: auto;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .nav-menu {
        flex-direction: row;
        gap: 2rem;
    }

    .nav-menu li a {
        padding: 0;
    }
}

.header-socials {
    display: none;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .header-socials {
        display: flex;
    }
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: #334155;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* --- Main Content & Templates --- */
.site-main-content {
    flex: 1;
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.container-full {
    max-width: 1200px;
}

/* Typography for Posts/Pages */
.entry-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.entry-meta {
    margin-bottom: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.entry-content {
    color: #334155;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.entry-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Social Share */
.social-share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.social-share-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-fb {
    background-color: #1877f2;
}

.share-tw {
    background-color: #1da1f2;
}

.share-wa {
    background-color: #25d366;
}

.share-email {
    background-color: #64748b;
}

/* --- Footer Styles --- */
.site-footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 3rem 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-heading {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-email {
    margin-top: 1rem;
    color: #cbd5e1;
    font-weight: 500;
    display: block;
}

.footer-menu-list a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-menu-list a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* React Clean Up */
#root>div>header,
#root>header,
#root header {
    display: none !important;
}

#root>div>footer,
#root>footer,
#root footer {
    display: none !important;
}

#root:empty {
    display: none;
}