/**
 * Personalitopia Component Styles: About Me Timeline (Corkboard & Instax Aesthetic)
 * Theme: twentytwentyfour-child
 */


About Me Timeline Block Styles (Corkboard & Instax Aesthetic)
   ========================================================================== */

.pt-timeline-section {
    margin: 60px 0;
    position: relative;
    box-sizing: border-box;
}

.pt-timeline-corkboard {
    background-color: #d8ad87;
    background-image: 
        radial-gradient(rgba(0,0,0,0.1) 15%, transparent 16%),
        radial-gradient(rgba(0,0,0,0.1) 15%, transparent 16%),
        linear-gradient(rgba(255,255,255,0.06) 50%, transparent 50%),
        linear-gradient(transparent 50%, rgba(0,0,0,0.06) 50%);
    background-size: 8px 8px, 8px 8px, 4px 4px, 4px 4px;
    background-position: 0 0, 4px 4px, 0 0, 0 0;
    border-radius: 16px;
    padding: 80px 24px;
    box-shadow: inset 0 0 50px rgba(44, 31, 21, 0.15), 0 4px 24px rgba(44, 31, 21, 0.08);
}

.pt-timeline-section-title {
    text-align: center;
    font-family: var(--wp--preset--font-family--heading, serif);
    font-size: 42px;
    color: #2c1f15;
    margin-bottom: 60px;
    font-weight: 700;
}

.pt-timeline-corkboard .pt-timeline-section-title {
    color: #1e130a;
    text-shadow: 0 1px 2px rgba(255,255,255,0.4);
}

.pt-timeline-empty {
    text-align: center;
    font-family: var(--wp--preset--font-family--body, sans-serif);
    color: #6d523b;
    font-size: 16px;
    padding: 40px;
}

.pt-timeline-container {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 0;
}

.pt-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(44, 31, 21, 0.1);
    transform: translateX(-50%);
    border-left: 2px dashed rgba(44, 31, 21, 0.25);
}

.pt-timeline-item {
    display: flex;
    justify-content: flex-end;
    position: relative;
    width: 50%;
    margin-bottom: 60px;
    box-sizing: border-box;
}

.pt-timeline-item.pt-pos-left {
    left: 0;
    padding-right: 48px;
}

.pt-timeline-item.pt-pos-right {
    left: 50%;
    justify-content: flex-start;
    padding-left: 48px;
}

.pt-timeline-dot {
    position: absolute;
    top: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--wp--preset--color--accent-2, #b8674a);
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 5;
    transition: transform 0.2s;
}

.pt-timeline-item:hover .pt-timeline-dot {
    transform: scale(1.2);
}

.pt-timeline-item.pt-pos-left .pt-timeline-dot {
    right: -8px;
}

.pt-timeline-item.pt-pos-right .pt-timeline-dot {
    left: -8px;
}

.pt-timeline-content-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.pt-timeline-item.pt-pos-left .pt-timeline-content-wrap {
    align-items: flex-end;
}

.pt-timeline-item.pt-pos-right .pt-timeline-content-wrap {
    align-items: flex-start;
}

/* Polaroid Photo Frame Styles */
.pt-timeline-polaroid {
    background: #ffffff;
    padding: 12px 12px 28px 12px;
    box-shadow: 
        0 10px 20px rgba(44, 31, 21, 0.12),
        0 3px 6px rgba(44, 31, 21, 0.08),
        inset 0 0 15px rgba(0,0,0,0.02);
    border-radius: 2px;
    width: 240px;
    position: relative;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    z-index: 2;
}

.pt-timeline-polaroid:hover {
    box-shadow: 
        0 18px 30px rgba(44, 31, 21, 0.2),
        0 8px 15px rgba(44, 31, 21, 0.12);
    transform: rotate(0deg) scale(1.04) translateY(-4px);
    z-index: 10;
}

.pt-polaroid-image-container {
    background: #1e1a17;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.05);
}

.pt-polaroid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.pt-timeline-polaroid:hover .pt-polaroid-img {
    transform: scale(1.02);
}

.pt-polaroid-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eae6df;
}

.pt-polaroid-placeholder-icon {
    font-size: 32px;
    opacity: 0.35;
}

.pt-polaroid-caption {
    margin-top: 12px;
    text-align: center;
    user-select: none;
}

.pt-polaroid-date {
    font-family: 'Caveat', cursive, sans-serif;
    font-size: 24px;
    color: #4a3b32;
    line-height: 1.1;
}

.pt-polaroid-year {
    font-weight: 700;
    margin-right: 6px;
    color: #b8674a;
}

.pt-polaroid-day {
    opacity: 0.95;
}

/* 3D Pushpin Component */
.pt-timeline-pushpin {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 30px;
    z-index: 8;
    pointer-events: none;
}

.pt-pin-head {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 3px;
    box-shadow: inset -2px -2px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.15);
}

.pt-pin-head::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.75);
}

.pt-pin-head::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 6px;
    width: 2px;
    height: 8px;
    background: #999;
    box-shadow: inset 0.5px 0 rgba(255,255,255,0.3);
}

.pt-pin-red .pt-pin-head { background: radial-gradient(circle at 30% 30%, #ff6b6b, #c92a2a); }
.pt-pin-blue .pt-pin-head { background: radial-gradient(circle at 30% 30%, #4dadf7, #1971c2); }
.pt-pin-yellow .pt-pin-head { background: radial-gradient(circle at 30% 30%, #ffd43b, #f59f00); }
.pt-pin-green .pt-pin-head { background: radial-gradient(circle at 30% 30%, #51cf66, #2b8a3e); }

.pt-pin-shadow {
    position: absolute;
    top: 14px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: rgba(44, 31, 21, 0.35);
    border-radius: 50%;
    filter: blur(1px);
    transform: rotate(45deg) scaleX(0.35);
}

/* Detailed Text Box Card */
.pt-timeline-text-card {
    background: #ffffff;
    border: 1px solid rgba(44, 31, 21, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 
        0 4px 12px rgba(44, 31, 21, 0.03),
        0 1px 2px rgba(44, 31, 21, 0.02);
    width: 100%;
    max-width: 380px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 3;
}

.pt-timeline-text-card:hover {
    border-color: var(--wp--preset--color--accent-2, #b8674a);
    box-shadow: 
        0 10px 24px rgba(44, 31, 21, 0.06),
        0 3px 6px rgba(44, 31, 21, 0.03);
    transform: translateY(-2px);
}

.pt-timeline-headline {
    font-family: var(--wp--preset--font-family--heading, serif);
    font-size: 19px;
    color: #2c1f15;
    margin: 0;
    font-weight: 600;
    line-height: 1.35;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.pt-timeline-toggle-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--accent-2, #b8674a);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.pt-timeline-toggle-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.pt-timeline-item.is-expanded .pt-timeline-toggle-icon {
    transform: rotate(180deg);
}

/* Expandable Drawer Transition styling */
.pt-timeline-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.pt-timeline-details-inner {
    padding-top: 14px;
    border-top: 1px solid rgba(44, 31, 21, 0.06);
    margin-top: 12px;
}

.pt-timeline-details-inner p {
    font-family: var(--wp--preset--font-family--body, sans-serif);
    font-size: 14.5px;
    line-height: 1.6;
    color: #554433;
    margin: 0 0 12px 0;
}

.pt-timeline-details-inner p:last-child {
    margin-bottom: 0;
}

.pt-polaroid-image-caption {
    font-size: 13px;
    color: #887766;
    margin-top: 10px;
    font-style: italic;
}

/* Editor Specific Tweaks to prevent conflict styles */
.gemini-pt-gutenberg-block-editor-wrap .pt-timeline-editor-list {
    font-family: var(--wp--preset--font-family--body, sans-serif);
}

/* ==========================================================================
   Mobile Responsive Rules
   ========================================================================== */
@media (max-width: 768px) {
    .pt-timeline-line {
        left: 20px;
        transform: none;
    }
    
    .pt-timeline-item {
        width: 100%;
        left: 0;
        justify-content: flex-start;
        padding-left: 48px;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .pt-timeline-item.pt-pos-left .pt-timeline-dot,
    .pt-timeline-item.pt-pos-right .pt-timeline-dot {
        left: 13px;
        right: auto;
    }
    
    .pt-timeline-content-wrap {
        align-items: flex-start;
        max-width: 100%;
        gap: 16px;
    }
    
    .pt-timeline-polaroid {
        width: 200px;
        margin: 0;
    }
    
    .pt-timeline-text-card {
        max-width: 100%;
    }
    
    .pt-timeline-section-title {
        font-size: 30px;
        margin-bottom: 40px;
    }
    
    .pt-timeline-corkboard {
        padding: 40px 16px;
    }
}
