/* 3Commas Page Styles - Chat Interface */

/* Body background */
body {
    background: #F0F3F5;
}

/* Main Content Styles */
.main-content {
    min-height: 100vh;
    padding-top: 168px;
    padding-bottom: 104px;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

/* Chat Container Styles */
.chat-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 600px;
    margin: 0 auto;
}

/* Web Version Styles */
@media (min-width: 768px) {
    .chat-container {
        width: 600px;
        gap: 48px;
    }
}

/* Mobile Version Styles */
@media (max-width: 767px) {
    .main-content {
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .chat-container {
        width: 100%;
        min-width: 320px;
        gap: 24px;
        padding: 16px;
    }
}

.chat-message-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 100%;
    height: auto;
}

.chat-container .chat-message-author.chat-message-first {
    padding-top: 48px !important;
}

@media (max-width: 767px) {
    .chat-container .chat-message-author.chat-message-first {
        padding-top: 80px !important;
    }
}

.chat-message-author .chat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
    gap: 12px;
    width: auto;
    min-width: 100px;
    max-width: 488px;
    height: auto;
    background: #FFFFFF;
    border-radius: 32px 32px 32px 6px;
}

.chat-message-author .chat-text {
    width: auto;
    height: auto;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    color: #000000;
}

/* Mobile version for author message */
@media (max-width: 767px) {
    .chat-message-author {
        align-items: flex-start;
        justify-content: center;
    }
    
    .chat-message-author .chat-block {
        padding: 12px 18px;
        gap: 12px;
        max-width: 320px;
        border-radius: 20px 20px 20px 4px;
    }
    
    .chat-message-author .chat-text {
        font-size: 18px;
        line-height: 1.3;
        height: auto;
    }
}

.chat-content-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 100%;
    height: auto;
}

.chat-content-author .chat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
    gap: 12px;
    width: auto;
    min-width: 100px;
    max-width: 488px;
    height: auto;
    background: #FFFFFF;
    border-radius: 32px 32px 32px 6px;
}

.chat-content-author .chat-text {
    width: auto;
    height: auto;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: #000000;
}

/* Mobile version for content author */
@media (max-width: 767px) {
    .chat-content-author {
        align-items: flex-start;
        justify-content: center;
    }
    
    .chat-content-author .chat-block {
        padding: 12px 18px;
        gap: 12px;
        max-width: 320px;
        border-radius: 20px 20px 20px 4px;
    }
    
    .chat-content-author .chat-text {
        font-size: 18px;
        line-height: 1.3;
        height: auto;
    }
}

.chat-list-author {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 100%;
    height: auto;
}

.chat-list-author .chat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
    gap: 4px;
    width: 488px;
    min-width: 100px;
    max-width: 488px;
    height: auto;
    background: #FFFFFF;
    border-radius: 32px 32px 32px 6px;
}

.chat-list-author .chat-title {
    width: 424px;
    height: auto;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    color: #000000;
}

.chat-list-author .chat-text {
    width: 424px;
    height: auto;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    color: #333333;
}

/* Mobile version for list author */
@media (max-width: 767px) {
    .chat-list-author {
        align-items: flex-start;
        justify-content: center;
    }
    
    .chat-list-author .chat-block {
        padding: 12px 18px;
        gap: 4px;
        width: 488px;
        max-width: 320px;
        border-radius: 20px 20px 20px 4px;
    }
    
    .chat-list-author .chat-title {
        width: 284px;
        font-size: 18px;
        line-height: 1.3;
        height: auto;
    }
    
    .chat-list-author .chat-text {
        width: 284px;
        font-size: 18px;
        line-height: 1.3;
        height: auto;
    }
}

.chat-message-reporter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 0px;
    gap: 8px;
    width: 100%;
    height: auto;
}

.chat-message-reporter .chat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px;
    gap: 12px;
    width: auto;
    min-width: 100px;
    max-width: 488px;
    height: auto;
    background: #333333;
    border-radius: 32px 6px 32px 32px;
}

.chat-message-reporter .chat-text {
    width: auto;
    height: auto;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    color: #FFFFFF;
}

/* Mobile version for reporter message */
@media (max-width: 767px) {
    .chat-message-reporter {
        align-items: flex-end;
        justify-content: center;
    }
    
    .chat-message-reporter .chat-block {
        padding: 12px 18px;
        gap: 12px;
        width: 320px;
        min-width: 40px;
        max-width: 320px;
        border-radius: 20px 4px 20px 20px;
    }
    
    .chat-message-reporter .chat-text {
        width: 284px;
        font-size: 18px;
        line-height: 1.3;
        height: auto;
    }
}

.chat-image {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 100%;
    height: auto;
}

.chat-image .chat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    width: 488px;
    min-width: 280px;
    max-width: 488px;
    height: auto;
    background: #FFFFFF;
    border-radius: 42px 42px 42px 6px;
}

.chat-image .chat-img {
    box-sizing: border-box;
    width: 440px;
    height: auto;
    border-radius: 16px;
}

/* Mobile version for image */
@media (max-width: 767px) {
    .chat-image .chat-block {
        padding: 12px;
        gap: 24px;
        width: 320px;
        min-width: 280px;
        max-width: 320px;
        border-radius: 24px 24px 24px 4px;
    }
    
    .chat-image .chat-img {
        width: 296px;
        height: auto;
    }
}

.chat-content-button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 100%;
    height: auto;
}

.chat-content-button .chat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 32px;
    width: auto;
    min-width: 100px;
    max-width: 488px;
    height: auto;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #FF00FF 0%, #0079FF 100%) border-box;
    border: 3px solid transparent;
    border-radius: 36px 36px 36px 6px;
}

.chat-content-button .chat-text {
    width: auto;
    height: auto;
    font-family: 'Inria Serif', Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
    color: #000000;
}

.chat-content-button .chat-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    gap: 8px;
    width: auto;
    height: 56px;
    background: linear-gradient(90deg, #FF00FF 0%, #0079FF 100%);
    border-radius: 28px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.chat-content-button .chat-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    10% { left: 100%; }
    100% { left: 100%; }
}

.chat-content-button .chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 121, 255, 0.3);
}

.chat-content-button .chat-button-text {
    width: auto;
    height: 24px;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    text-align: center;
}

.chat-buttons-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.chat-text-button {
    width: auto;
    height: 24px;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(90deg, #FF00FF 0%, #0079FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: opacity 0.2s ease;
    padding-left: 8px;
}

.chat-text-button:hover {
    opacity: 0.7;
}

/* Mobile version for content+button */
@media (max-width: 767px) {
    .chat-content-button .chat-block {
        padding: 16px;
        gap: 16px;
        width: 100%;
        min-width: 100px;
        max-width: 100%;
        background: linear-gradient(white, white) padding-box,
                    linear-gradient(90deg, #FF00FF 0%, #0079FF 100%) border-box;
        border: 2px solid transparent;
        border-radius: 24px 24px 24px 4px;
    }
    
    .chat-content-button .chat-text {
        width: 100%;
        font-size: 18px;
        line-height: 1.3;
        height: auto;
    }
    
    .chat-content-button .chat-button {
        width: auto;
        height: 44px;
    }
    
    .chat-content-button .chat-button-text {
        font-size: 14px;
    }
    
    .chat-buttons-container {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    
    .chat-text-button {
        font-size: 14px;
    }
}

/* Scroll Animation Styles */
.chat-message-author,
.chat-content-author,
.chat-list-author,
.chat-message-reporter,
.chat-image,
.chat-content-button {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.chat-message-author.animate,
.chat-content-author.animate,
.chat-list-author.animate,
.chat-message-reporter.animate,
.chat-image.animate,
.chat-content-button.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 16px;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.chat-img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-img:hover {
    transform: scale(1.02);
}

/* Results Table Styles */
.results-table-container {
    margin: 32px 0;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.results-table thead {
    background: #1a1a1a;
    color: #ffffff;
}

.results-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.results-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.results-table tbody tr:hover {
    background-color: #f8f9fa;
}

.results-table tbody tr:last-child {
    border-bottom: none;
}

  .results-table td {
      padding: 16px 20px;
      font-size: 14px;
      color: #333333;
      vertical-align: middle;
  }
  
  .results-table td:first-child {
      font-weight: 500;
      color: #1a1a1a;
  }
  
  .results-table td:nth-child(2),
  .results-table td:nth-child(3) {
      font-weight: 600;
      color: #666666;
  }

.results-table td:last-child {
    vertical-align: middle;
    text-align: left;
}

.results-table .positive {
    color: #4EA6A1;
    font-weight: 600;
    text-transform: capitalize;
}

/* Image Gallery Styles */
.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.image-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.case-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.case-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.placeholder-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.placeholder-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.placeholder-text {
    font-size: 18px;
    font-weight: 600;
    color: #666666;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.image-caption {
    font-size: 12px !important;
    color: #666666 !important;
    font-style: italic !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 16px !important;
    font-weight: normal !important;
}

/* Desktop: Single column for image gallery */
@media (min-width: 768px) {
    .image-gallery {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin: 40px 0;
    }
    
    .image-item {
        margin: 0;
        display: flex;
        flex-direction: column;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .results-table-container {
        margin: 24px 0;
        border-radius: 8px;
    }
    
    .results-table th,
    .results-table td {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .results-table th {
        font-size: 12px;
    }
    
    .image-gallery {
        margin: 24px 0;
        gap: 20px;
    }
    
    .case-image {
        border-radius: 8px;
    }
    
    .image-caption {
        font-size: 11px !important;
        padding: 0 8px !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-image, .modal-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.modal-video {
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close:hover {
    color: #cccccc;
}

/* Make images and videos clickable */
.case-image, .case-video {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-image:hover, .case-video:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 10px;
    }
    
    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .modal-image, .modal-video {
        max-height: 70vh;
    }
}

/* Final CTA Section Styles */
.final-cta {
    text-align: left;
    margin: 24px 0 0 0;
}

/* CTA Button Styles (matching AI Assistant) */
.cta-button--black {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 13px 24px;
    gap: 16px;
    width: fit-content;
    min-width: fit-content;
    height: 47px;
    background: #262626f5;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button--black:hover {
    background: #1a1a1af5;
    transform: translateY(-2px);
}

.cta-button--black .button-text {
    width: auto;
    height: 21px;
    display: flex;
    align-items: center;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.015em;
    font-size: 16px;
    line-height: 1.3;
    color: #ffffff;
}

/* Footnote Styles */
.footnote-link {
    color: #4EA6A1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
    transition: color 0.3s ease;
}

.footnote-link:hover {
    color: #3d8b87;
    text-decoration: underline;
}

/* Definitions Section Styles */
.definition-item {
    margin: 24px 0;
}

.definition-quote {
    margin: 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #4EA6A1;
    border-radius: 8px;
    font-style: italic;
    position: relative;
}

.definition-quote::before {
    content: '"';
    position: absolute;
    top: -8px;
    left: 16px;
    font-size: 48px;
    color: #4EA6A1;
    font-family: serif;
    line-height: 1;
}

.definition-quote p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
}

.definition-quote strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Mobile definitions adjustments */
@media (max-width: 768px) {
    .definition-quote {
        padding: 16px 20px;
        margin: 16px 0;
    }
    
    .definition-quote::before {
        font-size: 36px;
        top: -6px;
        left: 12px;
    }
    
    .definition-quote p {
        font-size: 15px;
    }
}

/* Hero Image Styles */
.hero-image-section {
    width: 100%;
    margin: 0 0 48px 0;
    text-align: center;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}