/* Global Styles */
:root {
    --primary-color: #0099ff;
    --primary-dark: #0077cc;
    --secondary-color: #00a8e8;
    --dark-navy: #001a4d;
    --border-color: #e5e7eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Layout */
.guest-post-list-wrapper {
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(0, 153, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
}

.gpl-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Hero Section */
.gpl-hero,
.gpl-hero-section {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #003f88 100%);
    color: white;
    padding: 72px 0 56px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: 0 18px 40px rgba(0, 26, 77, 0.15);
}

.gpl-hero h1,
.gpl-hero-section h1 {
    color: #ffffff !important;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 10px;
    font-weight: 700;
}

.gpl-hero p,
.gpl-hero-section p {
    color: #ffffff !important;
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Section Titles */
h2.gpl-section-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--dark-navy);
    font-weight: 700;
}

/* Filter Section */
.gpl-section-card,
.gpl-filter-section,
.gpl-sites-section {
    background: white;
    border: 1px solid rgba(219, 227, 239, 0.8);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
    padding: 28px;
    margin-bottom: 24px;
}

.gpl-filter-section .gpl-container,
.gpl-sites-section .gpl-container,
.gpl-metrics-section .gpl-container,
.gpl-how-to-choose-section .gpl-container,
.gpl-what-you-get-section .gpl-container,
.gpl-faq-section .gpl-container {
    width: 100%;
    max-width: none;
}

.gpl-filter-section h2,
.gpl-sites-section h2,
.gpl-metrics-section h2,
.gpl-what-you-get-section h2,
.gpl-how-to-choose-section h2,
.gpl-faq-section h2,
.gpl-filter-section h3,
.gpl-sites-section h3,
.gpl-metrics-section h3,
.gpl-what-you-get-section h3,
.gpl-how-to-choose-section h3,
.gpl-faq-section h3 {
    color: var(--dark-navy);
    margin-bottom: 10px;
}

.gpl-filter-section > .gpl-container > p,
.gpl-sites-section > .gpl-container > p,
.gpl-metrics-section > .gpl-container > p,
.gpl-how-to-choose-section > .gpl-container > p,
.gpl-what-you-get-section > .gpl-container > p,
.gpl-faq-section > .gpl-container > p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.gpl-filter-grid,
.gpl-form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.gpl-filter-group,
.gpl-form-group {
    display: flex;
    flex-direction: column;
}

.gpl-filter-group label,
.gpl-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-navy);
    font-size: 0.95rem;
    font-weight: 700;
}

.gpl-filter-group input,
.gpl-filter-group select,
.gpl-form-group input,
.gpl-form-group select,
.gpl-form-group textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
    color: var(--text-dark) !important;
    background: #fbfdff !important;
    box-sizing: border-box;
    vertical-align: middle;
    transition: border-color 0.3s;
}

.gpl-form-group select {
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    height: 50px !important;
    line-height: normal !important;
    padding-right: 42px !important;
}

.gpl-filter-group input::placeholder,
.gpl-form-group input::placeholder,
.gpl-form-group textarea::placeholder {
    font-size: inherit;
    line-height: inherit;
    color: var(--text-light);
    opacity: 1;
}

.gpl-filter-group input:focus,
.gpl-filter-group select:focus,
.gpl-form-group input:focus,
.gpl-form-group select:focus,
.gpl-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.12) !important;
}

.gpl-range-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.gpl-button-group,
.gpl-form-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.gpl-btn {
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    font-weight: 700;
}

.gpl-btn:hover {
    transform: translateY(-1px);
}

.gpl-btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 153, 255, 0.2);
}

.gpl-btn-primary:hover {
    background-color: var(--primary-dark);
}

.gpl-btn-secondary {
    background-color: #eef4fb;
    color: var(--dark-navy);
}

.gpl-btn-secondary:hover {
    background-color: #dbe8f8;
    color: var(--dark-navy);
}

/* Table Section */
.gpl-table-section,
.gpl-sites-section {
    background: white;
}

.gpl-table-wrapper {
    overflow-x: auto;
}

.gpl-table,
.gpl-sites-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 940px;
}

.gpl-table thead,
.gpl-sites-table thead {
    background-color: transparent;
    color: var(--dark-navy);
}

.gpl-table thead th,
.gpl-sites-table thead th {
    padding: 14px;
    text-align: left;
    font-weight: 600;
    color: var(--dark-navy);
    background: #f5f9ff;
    border-bottom: 2px solid #dbe3ef;
    font-size: 0.9rem;
}

.gpl-table tbody tr,
.gpl-sites-table tbody tr {
    border-bottom: 1px solid #edf2f7;
    transition: background-color 0.2s;
}

.gpl-table tbody tr:hover,
.gpl-sites-table tbody tr:hover {
    background-color: #fbfdff;
}

.gpl-table tbody td,
.gpl-sites-table tbody td {
    padding: 14px;
    font-size: 0.95rem;
    vertical-align: middle;
}

.gpl-btn-small,
.gpl-btn-sm {
    padding: 10px 14px;
    font-size: 0.9rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gpl-btn-small:hover,
.gpl-btn-sm:hover {
    background-color: var(--primary-dark);
}

/* Metrics Section */
.gpl-metrics-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.gpl-metrics-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.gpl-metric-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.gpl-metric-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* How-to Section */
.gpl-howto-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.gpl-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.gpl-tip-card {
    background: linear-gradient(135deg, var(--dark-navy) 0%, #003d7a 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.gpl-tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.gpl-tip-card p {
    color: #e0e0e0;
    font-size: 0.95rem;
}

/* Features Section */
.gpl-features-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.gpl-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gpl-feature-card {
    padding: 25px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s;
}

.gpl-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.gpl-feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.gpl-feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ Section */
.gpl-faq-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.gpl-faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.gpl-faq-item:last-child {
    border-bottom: none;
}

.gpl-faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: var(--dark-navy);
    color: #ffffff !important;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 600;
}

.gpl-faq-question,
.gpl-faq-question:visited,
.gpl-faq-question:hover,
.gpl-faq-question:focus {
    color: #ffffff !important;
}

.gpl-faq-question:hover {
    background-color: var(--primary-color);
}

.gpl-faq-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.gpl-faq-toggle.active {
    transform: rotate(180deg);
}

.gpl-faq-answer {
    display: none;
    padding: 20px 15px;
    color: var(--text-light);
    line-height: 1.8;
    background-color: #f9fafb;
}

.gpl-faq-answer.active {
    display: block;
}

/* Order Modal */
.gpl-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.gpl-modal.active {
    display: flex;
    align-items: flex-start;
}

.gpl-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.gpl-modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 1;
    margin: auto;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gpl-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
}

.gpl-order-website {
    margin: 10px 0 16px;
    color: var(--text-light);
}

.gpl-order-form textarea {
    min-height: 110px;
    resize: vertical;
}

.gpl-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
}

.gpl-message {
    padding: 12px 14px;
    border-radius: 8px;
    margin: 10px 0 12px;
    font-weight: 600;
}

.gpl-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gpl-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.gpl-payment-link a {
    display: inline-block;
    margin-bottom: 12px;
    color: #ffffff;
    background: var(--primary-color);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gpl-hero h1,
    .gpl-hero-section h1 {
        font-size: 1.8rem;
    }

    .gpl-hero p,
    .gpl-hero-section p {
        font-size: 1rem;
    }

    .gpl-filter-grid,
    .gpl-form-row {
        grid-template-columns: 1fr;
    }

    .gpl-button-group,
    .gpl-form-buttons {
        flex-direction: column;
    }

    .gpl-tips-grid,
    .gpl-features-grid {
        grid-template-columns: 1fr;
    }

    .gpl-table,
    .gpl-sites-table {
        font-size: 0.85rem;
    }

    .gpl-table thead th,
    .gpl-table tbody td,
    .gpl-sites-table thead th,
    .gpl-sites-table tbody td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .gpl-hero h1,
    .gpl-hero-section h1 {
        font-size: 1.4rem;
    }

    .gpl-filter-section,
    .gpl-sites-section,
    .gpl-table-section,
    .gpl-metrics-section,
    .gpl-howto-section,
    .gpl-how-to-choose-section,
    .gpl-features-section,
    .gpl-what-you-get-section,
    .gpl-faq-section {
        padding: 20px;
    }
}
