/*
 Theme Name:   My Custom Theme
 Theme URI:    http://example.com/my-custom-theme/
 Description:  My Custom Theme is a child theme for the Twenty Twenty-Four theme.
 Author:       Your Name
 Author URI:   http://example.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  my-custom-theme
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Imports
2.0 General
3.0 IPO Fetcher Styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 Imports
--------------------------------------------------------------*/
@import url("../astra/style.css");


/*--------------------------------------------------------------
2.0 General
--------------------------------------------------------------*/
/* Add any general custom styles here */


/*--------------------------------------------------------------
3.0 IPO Fetcher Styles
--------------------------------------------------------------*/
.ipo-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7fc;
    padding: 25px;
    border-radius: 10px;
}

.ipo-main-title {
    color: #334d6e;
    text-align: center;
    margin-bottom: 20px;
}

.ipo-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ipo-filters .ipo-radio {
    margin-right: 20px;
    font-size: 16px;
    color: #5a6e8a;
    cursor: pointer;
}

.ipo-radio input {
    margin-right: 8px;
}

.ipo-calendar-btn {
    background-color: #6c63ff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}
.ipo-calendar-btn .icon { margin-right: 8px; }

.ipo-body {
    display: flex;
    gap: 20px;
}

.ipo-sidebar {
    flex: 0 0 200px;
}

.ipo-sidebar-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e6e9f0;
    transition: all 0.3s ease;
}

.ipo-sidebar-item.active, .ipo-sidebar-item:hover {
    background-color: #fff;
    border-color: #6c63ff;
    color: #6c63ff;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

.ipo-sidebar-item .icon {
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.ipo-content {
    flex: 1;
}

.ipo-loader {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #5a6e8a;
}

.ipo-card {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 20px;
    align-items: center;
}

.ipo-card-logo {
    flex-shrink: 0;
}
.ipo-card-logo img {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

.ipo-card-details {
    flex-grow: 1;
}

.ipo-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.ipo-card-header h3 {
    margin: 0;
    font-size: 20px;
    color: #334d6e;
}
.ipo-card-tag {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: 500;
}
.ipo-card-tag.mainboard { background-color: #28a745; color: white; }
.ipo-card-tag.sme { background-color: #17a2b8; color: white; }
.ipo-card-tag.status-live { background-color: #28a745; color: white; }
.ipo-card-tag.status-allotment-out { background-color: #ffc107; color: #212529; }
.ipo-card-tag.status-upcoming { background-color: #007bff; color: white; }
.ipo-card-tag.status-allotment-awaited { background-color: #6f42c1; color: white; }
.ipo-card-tag.status { background-color: #eaf7f0; color: #28a745; }

.ipo-card-info {
    display: flex;
    gap: 30px;
    color: #5a6e8a;
    font-size: 14px;
    margin-top: 15px;
}
.ipo-card-info div {
    line-height: 1.4;
}
.ipo-card-info div span {
    display: block;
    font-weight: 600;
    color: #334d6e;
}

.ipo-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ipo-card-actions .btn {
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    border: 1px solid #ddd;
    font-weight: 500;
}
.ipo-card-actions .btn-primary {
    background-color: #6c63ff;
    color: #fff;
    border-color: #6c63ff;
}
.ipo-card-actions .btn-secondary {
    background-color: #f4f7fc;
    color: #5a6e8a;
}

/*--------------------------------------------------------------
4.0 Media Queries
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .ipo-body {
        flex-direction: column;
    }
    .ipo-sidebar {
        flex: 1;
        display: flex;
        gap: 15px;
        overflow-x: auto;
    }
    .ipo-sidebar-item {
        flex: 0 0 150px; /* Give a fixed base width */
    }
}

@media (max-width: 768px) {
    .ipo-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .ipo-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .ipo-card-tag {
        margin-left: 0;
        margin-top: 10px;
    }
    .ipo-card-info {
        flex-direction: column;
        gap: 15px;
    }
    .ipo-card-actions {
        flex-direction: row;
        width: 100%;
    }
    .ipo-card-actions .btn {
        flex: 1;
    }
}

@media (max-width: 480px) {
    .ipo-container {
        padding: 15px;
    }
    .ipo-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .ipo-filters {
        margin-bottom: 15px;
    }
    .ipo-card-header h3 {
        font-size: 18px;
    }
}
