/* Custom styles and animations */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb; /* Lighter gray background */
}

/* * V4.0.13: Hide the main H1 page title on the homepage.
* This is more specific than the old .entry-title rules.
*/
body.home .content-card > h1 {
    display: none;
}


/* Updated Bouncing Logo Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.logo-animated {
    animation: bounce 2s infinite;
}

/* New Styles for Circular Logo */
.logo-circle {
    width: 40px;
    height: 40px;
    background-color: #f97316; /* orange-500 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer-logo {
    width: 36px;
    height: 36px;
}

/* New Style for Orange First Letter in Nav */
.first-letter-orange {
    color: #f97316; /* orange-500 */
    font-weight: 600;
}


/* Main Content Card */
.content-card {
    background-color: #ffffff;
    border-radius: 0.75rem; /* 12px */
    border: 1px solid #e5e7eb; /* gray-200 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    padding: 1.5rem 2rem; /* 24px 32px */
}

/* Styles for the active middle section tab */
.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row; /* Explicitly set flex direction for icon alignment */
    gap: 0.5rem; /* space between icon and text */
    padding: 0.75rem 1rem;
    border-radius: 0.5rem; /* 8px */
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    border: 1px solid #e5e7eb; /* gray-200 */
    background-color: #f9fafb; /* gray-50 */
    color: #374151; /* gray-700 */
}

.tab-btn:hover:not(.tab-active) {
    background-color: #f3f4f6; /* gray-100 */
    border-color: #d1d5db; /* gray-300 */
}

.tab-btn.tab-active {
    background-color: #f97316; /* orange-500 */
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.2);
}

/* Styles for Search and Filter Controls */
.controls-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem; /* 24px */
    gap: 1rem; /* 16px */
}

.search-box {
    flex-grow: 1; /* Allow search box to take available space */
    min-width: 200px;
    padding: 0.6rem 1rem;
    font-size: 0.875rem; /* 14px */
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.5rem; /* 8px */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus {
    outline: none;
    border-color: #f97316; /* orange-500 */
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem; /* 14px */
    border: 1px solid #d1d5db; /* gray-300 */
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
     background-color: #f9fafb; /* gray-50 */
     border-color: #6d28d9; /* violet-700 */
     color: #6d28d9;
}

/* Styles for Filter Modal */
.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    color: #374151; /* gray-700 */
}
.filter-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* 6px */
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filter-input:focus {
     outline: none;
    border-color: #f97316; /* orange-500 */
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}


/* Table styling for new layout */
.ipo-table {
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    color: #374151; /* gray-700 */
}
.ipo-table thead {
    text-transform: uppercase;
    color: #f97316; /* orange-500 */
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom: 2px solid #f3f4f6; /* gray-100 */
}
.ipo-table th, .ipo-table td {
    padding: 1rem;
    white-space: nowrap;
}
.ipo-table tbody tr {
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
}
.ipo-table tbody tr:last-child {
    border-bottom: none;
}
.ipo-table tbody tr:hover {
    background-color: #f9fafb; /* gray-50 */
}
.status-pill {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background-color: #e0e7ff; /* indigo-100 */
    color: #3730a3; /* indigo-800 */
    font-weight: 500;
    font-size: 0.75rem;
}

/* Style for the company link in the table */
.company-link {
    font-weight: 600;
    color: #4f46e5; /* indigo-600 */
    text-decoration: none;
    transition: color 0.2s;
}
.company-link:hover {
    color: #3730a3; /* indigo-800 */
    text-decoration: underline;
}

/* V4.0.10: Style for disabled/placeholder links */
.company-link-disabled {
    font-weight: 600;
    color: #374151; /* gray-700 */
    text-decoration: none;
    cursor: default;
}


/* V4.0.7: Styles for Table Sorting */
.sortable-header {
    cursor: pointer;
    position: relative;
    padding-right: 1.5rem; /* Make space for arrow */
}
.sortable-header::after {
    content: '\2195'; /* Up-down arrow */
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1; /* gray-300 */
    font-size: 1rem;
    transition: color 0.2s;
}
.sortable-header:hover::after {
    color: #94a3b8; /* gray-400 */
}
.sortable-header.sort-asc::after {
    content: '\2191'; /* Up arrow */
    color: #f97316; /* orange-500 */
}
.sortable-header.sort-desc::after {
    content: '\2193'; /* Down arrow */
    color: #f97316; /* orange-500 */
}
/* End V4.0.7 */

/* V4.0.10: Style for "No data" row */
.no-data-row td {
    text-align: center;
    color: #6b7280; /* gray-500 */
    padding: 2rem;
    font-style: italic;
}
/* End V4.0.10 */

/* V4.0.13: Styles for Market Tickers */
.market-tickers .container {
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
    white-space: nowrap; /* Prevent wrapping */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.market-tickers .container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}
/* V4.0.13: Removed .ticker-card styles as they are no longer used */
/* End V4.0.13 */


/* WordPress Comment Section Styling */
.comments-area {
    margin-top: 2rem;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
}
.comment-list li {
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
}
.comment-list li:first-child {
    border-top: none;
    padding-top: 0;
}
.comment-author .avatar {
    border-radius: 50%;
    margin-right: 1rem;
    float: left;
}
.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151; /* gray-700 */
}
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background-color: #f9fafb;
}
.comment-form .form-submit {
    margin-top: 1.5rem;
}
.comment-form .form-submit .submit {
    background-color: #f97316; /* orange-500 */
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.comment-form .form-submit .submit:hover {
    background-color: #ea580c; /* orange-600 */
}
.comment-reply-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #4f46e5;
    font-weight: 500;
}
/* Grid layout for Name and Email fields */
.comment-form-fields-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column on mobile */
    gap: 1.5rem;
}
@media (min-width: 640px) { /* On sm screens and up, use 2 columns */
    .comment-form-fields-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Styles for the 'Save my name' checkbox */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.875rem;
}
.comment-form-cookies-consent input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    border-color: #d1d5db; /* gray-300 */
    margin-right: 0.75rem;
    accent-color: #f97316; /* orange-500 */
}
.comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: normal;
}


/* Styles for Single IPO Page & Guide Page Content (prose) */
.prose {
    line-height: 1.75;
}
.prose h1, .prose .entry-title {
    font-size: 2.25rem; /* 36px */
    font-weight: 700;
    margin-bottom: 1rem;
}
.prose h2 {
    font-size: 1.875rem; /* 30px */
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb; /* gray-200 */
}
.prose h3 {
    font-size: 1.5rem; /* 24px */
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.prose table {
    width: 100%;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.prose th {
    background-color: #f3f4f6;
    padding: 0.75rem 1rem;
    font-weight: 600;
    text-align: left;
}
.prose td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}
.prose tr:last-child td {
    border-bottom: none;
}
.prose a {
    color: #4f46e5; /* indigo-600 */
    text-decoration: none;
    font-weight: 500;
}
.prose a:hover {
    text-decoration: underline;
}

/* Custom Info Boxes for Guide */
.info-box {
    background-color: #eff6ff; /* blue-50 */
    border-left: 4px solid #3b82f6; /* blue-500 */
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0.25rem;
}
.info-box p {
    margin: 0 !important;
}
.tip-box {
    background-color: #fefce8; /* yellow-50 */
    border-left: 4px solid #f59e0b; /* yellow-500 */
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0.25rem;
}
.tip-box p {
    margin: 0 !important;
}
.checklist {
    list-style: none;
    padding-left: 0;
}
.checklist li {
    background-color: #f9fafb;
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
}
/* * V4.0.13: Removed old/generic title hiding rules. 
* Replaced with the specific rule at the top of this file.
*/
