/* ==========================================================================
   STANDALONE PROFILE PAGE EXCLUSIVE STYLES
   ========================================================================== */

html,
body.profile-standalone-template {
    margin: 0;
    padding: 0;
    background-color: #0b0b0d;
    color: #e4e4e7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: auto !important;
}

.profile-standalone-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #0b0b0d;
    position: relative;
    overflow-x: hidden;
}

/* Subtle background top accent glow */
.profile-standalone-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 500px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 58, 18, 0.08) 0%, rgba(11, 11, 13, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   STANDALONE NAVBAR
   ========================================================================== */

.profile-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(11, 11, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.profile-nav-logo {
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-nav-logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.profile-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.profile-nav-links a {
    color: #a1a1aa;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s ease;
}

.profile-nav-links a:hover {
    color: #FF3A12;
}

.profile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.profile-back-btn:hover {
    background: #FF3A12;
    border-color: #FF3A12;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */

.profile-main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Header Section */
.profile-header {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    padding: 0 24px;
    text-align: center;
}

.profile-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.profile-subheading {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #FF3A12;
    background: rgba(255, 58, 18, 0.1);
    padding: 6px 16px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 58, 18, 0.25);
}

.profile-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
}

.profile-excerpt {
    max-width: 700px;
    margin: 8px auto 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: #a1a1aa;
}

/* Featured Media */
.profile-featured-media {
    max-width: 1000px;
    margin: 0 auto 50px auto;
    padding: 0 24px;
}

.profile-thumbnail-wrapper {
    position: relative;
    width: 100%;
    max-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.profile-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Main Content Container */
.profile-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   RICH TEXT / ENTRY-CONTENT STYLES
   ========================================================================== */

.profile-content.entry-content {
    font-size: 1.075rem;
    line-height: 1.8;
    color: #d4d4d8;
    word-break: break-word;
}

.profile-content p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.profile-content p:last-child {
    margin-bottom: 0;
}

/* Headings */
.profile-content h1,
.profile-content h2,
.profile-content h3,
.profile-content h4,
.profile-content h5,
.profile-content h6 {
    color: #ffffff;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.profile-content h1:first-child,
.profile-content h2:first-child,
.profile-content h3:first-child {
    margin-top: 0;
}

.profile-content h1 { font-size: 2.4rem; }
.profile-content h2 { 
    font-size: 1.95rem; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}
.profile-content h3 { font-size: 1.55rem; color: #f4f4f5; }
.profile-content h4 { font-size: 1.25rem; color: #f4f4f5; }
.profile-content h5 { font-size: 1.1rem; }
.profile-content h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: #a1a1aa; }

/* Links */
.profile-content a {
    color: #FF3A12;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.profile-content a:hover {
    color: #ff5f3d;
    text-decoration-color: #ff5f3d;
}

/* Strong & Emphasis */
.profile-content strong,
.profile-content b {
    color: #ffffff;
    font-weight: 700;
}

.profile-content em,
.profile-content i {
    font-style: italic;
}

/* Lists */
.profile-content ul,
.profile-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.75rem;
}

.profile-content ul { list-style-type: disc; }
.profile-content ol { list-style-type: decimal; }

.profile-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.profile-content li::marker {
    color: #FF3A12;
}

.profile-content ul ul,
.profile-content ol ol,
.profile-content ul ol,
.profile-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.profile-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.75rem;
    border-left: 4px solid #FF3A12;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #e4e4e7;
}

.profile-content blockquote p { margin-bottom: 0.75rem; }
.profile-content blockquote p:last-child { margin-bottom: 0; }

.profile-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    font-style: normal;
    color: #a1a1aa;
}

/* Tables */
.profile-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.profile-content th,
.profile-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-content th {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 700;
}

.profile-content tr:last-child td { border-bottom: none; }
.profile-content tr:nth-child(even) td { background-color: rgba(255, 255, 255, 0.02); }

/* Code & Preformatted */
.profile-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.88em;
    background: rgba(255, 255, 255, 0.08);
    color: #ff8c70;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-content pre {
    background: #141417;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1.75rem 0;
}

.profile-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: #e4e4e7;
    font-size: 0.9rem;
}

/* Horizontal Rule / Separator */
.profile-content hr,
.profile-content .wp-block-separator {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 3rem 0;
}

/* Images & Media */
.profile-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.profile-content figure { margin: 2rem 0; }
.profile-content figcaption {
    font-size: 0.85rem;
    color: #71717a;
    text-align: center;
    margin-top: 0.5rem;
}

.profile-content .alignleft { float: left; margin: 0.5rem 1.5rem 1.5rem 0; }
.profile-content .alignright { float: right; margin: 0.5rem 0 1.5rem 1.5rem; }
.profile-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* WordPress Blocks Compatibility */
.profile-content .wp-block-columns {
    display: flex;
    gap: 24px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-content .wp-block-column {
    flex: 1;
    min-width: 260px;
}

.profile-content .wp-block-button__link {
    display: inline-block;
    background: #FF3A12;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-content .wp-block-button__link:hover {
    background: #e02f0b;
    transform: translateY(-2px);
}

/* Pagination Links for Multi-page Articles */
.profile-page-links {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    align-items: center;
}

.profile-page-links .page-links-title {
    font-weight: 700;
    color: #ffffff;
    margin-right: 8px;
}

.profile-page-links .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.profile-page-links a .page-number:hover {
    background: #FF3A12;
    border-color: #FF3A12;
    color: #ffffff;
}

/* Empty State */
.profile-empty {
    text-align: center;
    padding: 80px 20px;
}

.profile-empty h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 12px;
}

.profile-empty p {
    color: #71717a;
    font-size: 1.1rem;
}

/* ==========================================================================
   STANDALONE FOOTER
   ========================================================================== */

.profile-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #08080a;
    padding: 30px 24px;
}

.profile-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #71717a;
    font-size: 0.88rem;
}

.profile-footer-container p {
    margin: 0;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .profile-nav-links {
        display: none;
    }

    .profile-main {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .profile-header {
        margin-bottom: 30px;
    }

    .profile-content.entry-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .profile-content h1 { font-size: 2rem; }
    .profile-content h2 { font-size: 1.6rem; }
    .profile-content h3 { font-size: 1.35rem; }

    .profile-content .alignleft,
    .profile-content .alignright {
        float: none;
        margin: 1.5rem 0;
        width: 100%;
    }

    .profile-content .wp-block-columns {
        flex-direction: column;
    }
}
