/**
 * 3D Glass Liquid Shrimp Display - INTERACTIVE LAYOUT
 * Modern split-screen design: Left (Menu) + Right (Content Display)
 * Simplified, clean, and modern
 */

/* ============================================
   BASE WRAPPER & CONTAINER
   ============================================ */

.shrimp-3d-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: transparent;
    overflow: hidden;
}

.shrimp-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    filter: blur(3px);
}

.shrimp-3d-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    min-height: 100vh;
    align-items: start;
}

/* ============================================
   LEFT SIDEBAR - MENU LIST
   ============================================ */

.shrimp-content-left {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(97, 151, 76, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for left sidebar */
.shrimp-content-left::-webkit-scrollbar {
    width: 6px;
}

.shrimp-content-left::-webkit-scrollbar-track {
    background: rgba(97, 151, 76, 0.05);
    border-radius: 10px;
}

.shrimp-content-left::-webkit-scrollbar-thumb {
    background: rgba(97, 151, 76, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.shrimp-content-left::-webkit-scrollbar-thumb:hover {
    background: rgba(97, 151, 76, 0.5);
}

/* ============================================
   MENU ITEMS (Left Side)
   ============================================ */

.shrimp-3d-wrapper .content-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shrimp-3d-wrapper .content-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation delays */
.shrimp-3d-wrapper .content-item[data-index="1"] { transition-delay: 0.1s; }
.shrimp-3d-wrapper .content-item[data-index="2"] { transition-delay: 0.2s; }
.shrimp-3d-wrapper .content-item[data-index="3"] { transition-delay: 0.3s; }
.shrimp-3d-wrapper .content-item[data-index="4"] { transition-delay: 0.4s; }

.shrimp-3d-wrapper .menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.shrimp-3d-wrapper .menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #61974c;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.shrimp-3d-wrapper .menu-item:hover {
    transform: translateX(5px);
    border-color: rgba(97, 151, 76, 0.3);
    box-shadow: 0 5px 20px rgba(97, 151, 76, 0.15);
}

.shrimp-3d-wrapper .menu-item:hover::before {
    transform: scaleY(1);
}

.shrimp-3d-wrapper .menu-item.active {
    background: linear-gradient(135deg, rgba(97, 151, 76, 0.1) 0%, rgba(126, 188, 100, 0.05) 100%);
    border-color: #61974c;
    transform: translateX(8px);
}

.shrimp-3d-wrapper .menu-item.active::before {
    transform: scaleY(1);
}

/* Menu Icon */
.shrimp-3d-wrapper .menu-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: linear-gradient(135deg, #61974c 0%, #7ebc64 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(97, 151, 76, 0.25);
    transition: all 0.3s ease;
}

.shrimp-3d-wrapper .menu-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    /* REMOVED: filter: brightness(0) invert(1); to keep original icon colors */
}

.shrimp-3d-wrapper .menu-icon.default-icon {
    background: #fff;
    border: 2px solid #61974c;
}

.shrimp-3d-wrapper .menu-icon.default-icon span {
    font-size: 11px;
    font-weight: 700;
    color: #61974c;
    text-transform: uppercase;
}

.shrimp-3d-wrapper .menu-item:hover .menu-icon,
.shrimp-3d-wrapper .menu-item.active .menu-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(97, 151, 76, 0.35);
}

/* Menu Title */
.shrimp-3d-wrapper .menu-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.shrimp-3d-wrapper .menu-item.active .menu-title {
    color: #61974c;
    font-weight: 700;
}

/* Arrow Icon */
.shrimp-3d-wrapper .menu-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(97, 151, 76, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.shrimp-3d-wrapper .menu-arrow svg {
    width: 14px;
    height: 14px;
    stroke: #61974c;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.shrimp-3d-wrapper .menu-item:hover .menu-arrow,
.shrimp-3d-wrapper .menu-item.active .menu-arrow {
    background: #61974c;
}

.shrimp-3d-wrapper .menu-item:hover .menu-arrow svg,
.shrimp-3d-wrapper .menu-item.active .menu-arrow svg {
    stroke: #fff;
    transform: translateX(3px);
}

/* ============================================
   RIGHT CONTENT AREA
   ============================================ */

.shrimp-3d-right {
    position: relative;
    min-height: 600px;
}

.content-display {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    border: 1px solid rgba(97, 151, 76, 0.15);
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 700px; /* Fixed height to match left sidebar */
    overflow: hidden;
}

.content-display.expanded {
    max-height: none; /* Remove height limit when expanded */
}

.content-display.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-display.active {
    animation: contentFadeIn 0.5s ease-out;
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Header */
.content-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(97, 151, 76, 0.1);
}

.content-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #61974c 0%, #7ebc64 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(97, 151, 76, 0.3);
}

.content-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    /* REMOVED: filter to keep original icon colors */
}

.content-icon.default-icon {
    background: #fff;
    border: 3px solid #61974c;
}

.content-icon.default-icon span {
    font-size: 16px;
    font-weight: 700;
    color: #61974c;
    text-transform: uppercase;
}

.content-title {
    flex: 1;
    font-size: 32px;
    font-weight: 700;
    color: #61974c;
    line-height: 1.3;
    margin: 0;
}

/* Content Body */
.content-body {
    font-size: 17px;
    line-height: 1.9;
    color: #495057;
    text-align: justify;
    position: relative;
}

.content-body-wrapper {
    position: relative;
    max-height: 450px; /* Limit height */
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-display.expanded .content-body-wrapper {
    max-height: none;
    overflow: visible;
}

.content-body p {
    margin-bottom: 20px;
}

.content-body p:last-child {
    margin-bottom: 0;
}

/* Content Media */
.content-media {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.content-media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* Support for WYSIWYG content images */
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: #adb5bd;
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    opacity: 0.3;
}

.empty-state-icon svg {
    width: 100%;
    height: 100%;
    stroke: #adb5bd;
}

.empty-state-text {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */

.decorative-dots {
    position: absolute;
    top: 30px;
    right: 30px;
    display: grid;
    grid-template-columns: repeat(3, 8px);
    gap: 8px;
    opacity: 0.2;
}

.decorative-dots span {
    width: 8px;
    height: 8px;
    background: #61974c;
    border-radius: 50%;
}

/* Subtle gradient overlay */
.content-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(97, 151, 76, 0.03) 0%, transparent 100%);
    border-radius: 25px 25px 0 0;
    pointer-events: none;
}

/* Expand/Collapse Button */
.content-expand-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #61974c 0%, #7ebc64 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(97, 151, 76, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.content-expand-btn.visible {
    opacity: 1;
    visibility: visible;
}

.content-expand-btn:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(97, 151, 76, 0.6);
}

.content-expand-btn:active {
    transform: translateX(-50%) scale(0.95);
}

.content-expand-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 3;
    transition: transform 0.3s ease;
}

.content-display.expanded .content-expand-btn svg {
    transform: rotate(180deg);
}

/* Fade out effect when content is too long */
.content-display:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.98) 70%, rgba(255, 255, 255, 1) 100%);
    border-radius: 0 0 25px 25px;
    pointer-events: none;
}

.content-display.expanded::after {
    display: none;
}

/* ============================================
   FLOATING PARTICLES (Subtle)
   ============================================ */

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.4;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #61974c;
    border-radius: 50%;
    animation: floatParticle 20s infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.particle:nth-child(2) {
    top: 40%;
    right: 20%;
    animation-delay: 5s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 25%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    top: 80%;
    right: 30%;
    animation-delay: 15s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 8s;
    animation-duration: 16s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    50% {
        transform: translateY(-60px) scale(1.2);
        opacity: 0.6;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-120px) scale(0.8);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .shrimp-3d-container {
        grid-template-columns: 350px 1fr;
        gap: 30px;
    }
    
    .shrimp-content-left {
        padding: 25px;
    }
    
    .content-display {
        padding: 40px;
    }
    
    .content-title {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .shrimp-3d-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .shrimp-content-left {
        position: relative;
        top: 0;
        width: 100%;
    }
    
    .content-display {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .shrimp-3d-container {
        padding: 20px 15px;
    }
    
    .shrimp-content-left {
        padding: 20px;
        border-radius: 20px;
    }
    
    .menu-item {
        padding: 15px;
        border-radius: 12px;
    }
    
    .menu-icon {
        width: 45px;
        height: 45px;
    }
    
    .menu-icon img {
        width: 28px;
        height: 28px;
    }
    
    .menu-title {
        font-size: 15px;
    }
    
    .menu-arrow {
        width: 25px;
        height: 25px;
    }
    
    .content-display {
        padding: 30px;
        border-radius: 20px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }
    
    .content-icon {
        width: 65px;
        height: 65px;
        border-radius: 15px;
    }
    
    .content-icon img {
        width: 40px;
        height: 40px;
    }
    
    .content-title {
        font-size: 24px;
    }
    
    .content-body {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .content-display {
        max-height: 600px;
    }
    
    .content-body-wrapper {
        max-height: 350px;
    }
    
    .content-expand-btn {
        width: 45px;
        height: 45px;
        bottom: 15px;
    }
    
    .content-expand-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .shrimp-content-left {
        padding: 15px;
        gap: 15px;
    }
    
    .shrimp-3d-wrapper .menu-item {
        padding: 12px;
        gap: 12px;
    }
    
    .shrimp-3d-wrapper .menu-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .shrimp-3d-wrapper .menu-icon img {
        width: 24px;
        height: 24px;
    }
    
    .shrimp-3d-wrapper .menu-title {
        font-size: 14px;
    }
    
    .content-display {
        padding: 25px;
    }
    
    .content-icon {
        width: 55px;
        height: 55px;
    }
    
    .content-icon img {
        width: 35px;
        height: 35px;
    }
    
    .content-title {
        font-size: 20px;
    }
    
    .content-body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .content-display {
        max-height: 550px;
    }
    
    .content-body-wrapper {
        max-height: 300px;
    }
    
    .content-expand-btn {
        width: 40px;
        height: 40px;
        bottom: 12px;
    }
    
    .content-expand-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .empty-state-icon {
        width: 80px;
        height: 80px;
    }
    
    .empty-state-text {
        font-size: 16px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .menu-item,
    .content-display {
        border: 2px solid #61974c;
    }
    
    .menu-item.active {
        background: rgba(97, 151, 76, 0.2);
    }
    
    .menu-title,
    .content-title {
        color: #0a5e09;
    }
    
    .content-body {
        color: #000;
    }
}

/* Focus styles for keyboard navigation */
.menu-item:focus {
    outline: 3px solid #61974c;
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .floating-particles,
    .decorative-dots,
    .menu-arrow {
        display: none;
    }
    
    .shrimp-3d-container {
        display: block;
    }
    
    .menu-item,
    .content-display {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}