/*
Theme Name: Inobe Portfolio
Theme URI: https://example.com/inobe-portfolio
Author: Antigravity
Description: A modern, light-themed portfolio with Bento Grid layout.
Version: 1.0.1
*/

/* 
 * NOTE: Layout utilities are now handled by Tailwind CSS (CDN in header.php).
 * This file is for custom overrides and component styles only.
 */

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* WP Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

:root {
    --header-height: 80px;
    --radius-card: 24px;
}

body {
    /* Tailwind handles bg/text, but we force font here as fallback */
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Bento Card Transitions & Hover Effects */
.bento-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Custom Scrollbar (optional but nice) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* =========================================
   Entry Content Styling (Prose)
   ================================********* */
.entry-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #334155;
    /* Slate 700 */
}

/* Headings */
.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E2E8F0;
    background: linear-gradient(to right, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    width: auto;
}

.entry-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid #a855f7;
    color: #1e293b;
}

.entry-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #475569;
}

/* Paragraphs & Text */
.entry-content p {
    margin-bottom: 1.75rem;
    text-align: justify;
    word-break: break-all;
}

/* Lists */
.entry-content ul {
    list-style: none;
    /* reset */
    padding-left: 0;
    margin-bottom: 1.75rem;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a855f7;
    /* Purple dot */
}

.entry-content ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.75rem;
}

.entry-content ol li {
    padding-left: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Blockquotes */
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(240, 249, 255, 0.5);
    /* Light blue tint */
    border-left: 4px solid #22d3ee;
    border-radius: 0 16px 16px 0;
    color: #64748b;
    font-style: italic;
}

/* Links */
.entry-content a {
    color: #3b82f6;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.entry-content a:hover {
    color: #a855f7;
}

/* Code */
.entry-content code {
    background: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: #ec4899;
}

.entry-content pre {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    color: #f8fafc;
    overflow-x: auto;
    margin-bottom: 2rem;
}

/* Images */
.entry-content img {
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
}

/* Embeds (Video/YouTube/Vimeo) Alignment Fix */
.entry-content .wp-block-embed {
    margin: 2rem 0;
}

.entry-content .wp-block-embed.aligncenter {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.entry-content .wp-block-embed .wp-block-embed__wrapper {
    display: inline-block;
}

.entry-content iframe {
    max-width: 100%;
    margin: 0 auto;
    /* Force center if block is block-level */
    display: block;
    /* Ensure margin auto works */
}

/* Exclude File Block Icon from Image Styles */
.entry-content .wp-block-file img {
    box-shadow: none;
    margin: 0;
    border-radius: 0;
}

/* File Block Link Fix */
.entry-content .wp-block-file a {
    text-decoration: none;
}

.entry-content .wp-block-file a:hover {
    color: inherit;
}

/* Strong / Bold (Simple) */
.entry-content strong,
.entry-content b {
    background: none;
    /* Removed marker style */
    font-weight: 700;
    color: #1e293b;
    /* Darker slate for emphasis */
}

/* Footer Menu Styling */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    font-size: 0.75rem;
    /* text-xs */
}

.site-footer ul li a {
    color: #64748b;
    /* text-text-secondary */
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer ul li a:hover {
    color: #1e293b;
    /* text-text-primary */
}

/* =========================================
   Custom Decoration Components
   ================================********* */

/* 1. Speech Bubble */
.speech-bubble {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.speech-bubble-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.speech-bubble-content {
    position: relative;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    width: 100%;
}

.speech-bubble-content::before,
.speech-bubble-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 100%;
    height: 0;
    width: 0;
    border: solid transparent;
}

.speech-bubble-content::after {
    border-color: rgba(248, 250, 252, 0);
    border-right-color: #f8fafc;
    border-width: 8px;
    margin-top: -8px;
}

.speech-bubble-content::before {
    border-color: rgba(226, 232, 240, 0);
    border-right-color: #e2e8f0;
    border-width: 11px;
    margin-top: -11px;
}

/* Right side bubble (user) */
.speech-bubble.right {
    flex-direction: row-reverse;
}

.speech-bubble.right .speech-bubble-content::after {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #f8fafc;
}

.speech-bubble.right .speech-bubble-content::before {
    right: auto;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #e2e8f0;
}


/* 2. Content Boxes */
.c-box {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

/* Simple Box */
.c-box.simple {
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Note/Point Box */
.c-box.note {
    background: rgba(236, 254, 255, 0.6);
    /* Cyan tint */
    border: 2px solid #22d3ee;
    position: relative;
}

.c-box.note::before {
    content: 'POINT';
    position: absolute;
    top: -12px;
    left: 16px;
    background: #22d3ee;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 99px;
    letter-spacing: 0.05em;
}

/* Alert/Attention Box */
.c-box.alert {
    background: rgba(255, 241, 242, 0.6);
    /* Pink tint */
    border: 2px solid #fb7185;
    color: #be123c;
}

/* 3. Steps (Suggestion) */
.step-list {
    counter-reset: step;
    list-style: none !important;
    padding: 0 !important;
}

.step-list li {
    position: relative;
    padding-left: 3rem !important;
    padding-bottom: 2rem;
    border-left: 2px solid #e2e8f0;
    margin-left: 1rem;
}

.step-list li:last-child {
    border-left: none;
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: -1rem;
    /* Center on border */
    top: 0;
    width: 2rem;
    height: 2rem;
    background: #a855f7;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 2rem;
    font-weight: bold;
    font-size: 0.9rem;
    border: 4px solid #fff;
    /* Gap effect */
    box-shadow: 0 0 0 1px #a855f7;
    /* Outer ring */
}

.step-list li h4 {
    margin-top: 0;
}