/**
 * GenGold Cruises - Frontend Styles
 */

/* Hub Container */
.ggc-hub {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Titles */
.ggc-section-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a2e;
}

.ggc-section-desc {
    color: #666;
    margin: 0 0 25px 0;
}

/* Search Section */
.ggc-search-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    color: #fff;
}

.ggc-search-section .ggc-section-title {
    color: #fff;
}

.ggc-search-section .ggc-section-desc {
    color: rgba(255,255,255,0.7);
}

/* Search Form */
.ggc-search-form {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 25px;
}

.ggc-search-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.ggc-field {
    flex: 1;
    min-width: 200px;
}

.ggc-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.9);
}

.ggc-field select,
.ggc-field input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.95);
    color: #333;
    transition: all 0.2s;
}

.ggc-field select:focus,
.ggc-field input:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

.ggc-field-submit {
    flex: 0 0 auto;
}

/* Buttons */
.ggc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.ggc-btn-primary {
    background: linear-gradient(135deg, #c9a227 0%, #d4af37 100%);
    color: #1a1a2e;
}

.ggc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,162,39,0.4);
}

.ggc-btn-search {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
}

.ggc-btn-search:hover {
    background: #005177;
    color: #fff;
}

.ggc-icon {
    font-size: 18px;
}

/* Search Result */
.ggc-search-result {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.ggc-result-message a {
    color: #c9a227;
}

/* Portals Section */
.ggc-portals-section {
    padding: 20px 0;
}

/* Portal Cards */
.ggc-portal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ggc-portal-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.ggc-portal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.ggc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.ggc-card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
}

.ggc-category-badge {
    font-size: 11px;
    padding: 4px 10px;
    background: #e8e8e8;
    border-radius: 20px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ggc-card-body {
    padding: 18px 20px;
}

.ggc-portal-card .ggc-destinations {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.ggc-card-meta {
    font-size: 12px;
    color: #999;
}

.ggc-ships {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ggc-ships::before {
    content: '🚢';
}

.ggc-card-footer {
    padding: 15px 20px;
    background: #fafafa;
    border-top: 1px solid #e8e8e8;
}

.ggc-card-footer .ggc-btn {
    width: 100%;
}

/* Search Widget (Shortcode) */
.ggc-search-widget {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ggc-layout-horizontal .ggc-search-fields {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ggc-layout-horizontal .ggc-field {
    flex: 1;
}

.ggc-layout-vertical .ggc-search-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ggc-search-widget select {
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    width: 100%;
}

/* Portals Table Widget */
.ggc-portals-widget {
    overflow-x: auto;
}

.ggc-portals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ggc-portals-table th,
.ggc-portals-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.ggc-portals-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.ggc-portals-table tr:hover {
    background: #fafafa;
}

.ggc-line-name strong {
    display: block;
}

.ggc-parent {
    font-size: 12px;
    color: #999;
}

.ggc-portals-table .ggc-link-btn {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    background: #0073aa;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.ggc-portals-table .ggc-link-btn:hover {
    background: #005177;
}

.ggc-portals-table .ggc-link-register {
    background: #28a745;
}

.ggc-portals-table .ggc-link-register:hover {
    background: #1e7e34;
}

.ggc-portals-table .ggc-link-search {
    background: #6c757d;
}

.ggc-portals-table .ggc-link-search:hover {
    background: #545b62;
}

/* Responsive */
@media (max-width: 768px) {
    .ggc-search-section {
        padding: 25px;
    }
    
    .ggc-search-row {
        flex-direction: column;
    }
    
    .ggc-field {
        min-width: 100%;
    }
    
    .ggc-portal-cards {
        grid-template-columns: 1fr;
    }
    
    .ggc-portals-table {
        font-size: 12px;
    }
    
    .ggc-portals-table th,
    .ggc-portals-table td {
        padding: 8px 10px;
    }
}
