/* CSS Custom Properties */
:root {
    --font-mono: "input-mono-condensed", "Input Mono Condensed", monospace, Arial, sans-serif;
    --font-sans: Arial, sans-serif;
    --color-border: #e0e0e0;
    --color-text-muted: white;
}

/* Base styles */

html {
    font-size: 15px;
}

body {
    font-family: var(--font-mono);
    font-weight: 200;
    display: flex;
    justify-content: center;
    margin: 0;
    background: blue;
    color: white;
    min-height: 100vh;
}

a, a:visited {
    color: white;
}

h2 {
    font-family: var(--font-mono);
    margin-top: 0px;
    font-size: 1.6em;
}

/* Typography */
h3 {
    font-family: var(--font-sans);
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    margin-top: 0px;
    margin-bottom: 10px;
}

p {
    font-family: var(--font-sans);
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    opacity: 0.8;
    margin-top: 0px;
    margin-bottom: 20px;
}

/* Utility: optional white glow */
.glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.33), 0 0 6px rgba(255, 255, 255, 0.33);
}

/* Layout */
.container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    margin-top: 50px;
    padding: 0 15px;
    box-sizing: border-box;
}

.container.pricing-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 50px);
}

/* Page-specific width for /dir */
.container.dir-page {
    max-width: 500px;
}

/* Mobile viewport fix for pricing page */
@media (max-width: 480px) {
    .container.pricing-page {
        min-height: calc(100vh - 70px);
    }
}

/* Header */
.page-header {
    margin-bottom: 30px;
}

/* Content sections */
.content {
    margin-bottom: 25px;
}

.entry {
    margin-bottom: 30px;
}

.entry-category {
    font-size: 0.8em;
    opacity: 0.7;
}

.entry-header {
    margin-bottom: 10px;
}

.entry-name {
    font-size: 1.1em;
    font-weight: 400;
    font-family: var(--font-sans);
}

.entry-key {
    font-family: var(--font-mono);
    opacity: 0.8;
}

.entry-value {
    font-family: var(--font-sans);
}

.entry-description {
    font-family: var(--font-sans);
    margin-top: 10px;
    line-height: 1.5em;
}

.pricing-page .content {
    flex-grow: 1;
}

/* Custom bullets for lists */
ul {
    list-style: none;  /* Remove default bullets */
    padding-left: 0;
    margin: 15px 15px;
}

.icon-list li {
    margin-bottom: 8px;
    padding-left: 35px;
    position: relative;
}

/* Icon bullets for specific list items */
.infra-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url('/static/icons/infra.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.listening-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url('/static/icons/listening.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.personal-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0px;
    width: 20px;
    height: 20px;
    background-image: url('/static/icons/personal.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Newsletter selection */
.newsletter-selection {
    margin-bottom: 30px;
}

.newsletter-option {
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    min-height: 40px;
}

/* .checkbox-container:hover {
    border: 1px dashed white;
} */

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 15px;
    height: 15px;
    border: 1px solid #ffffff;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: black;
    border-color: black;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

.newsletter-info p {
    font-size: 1em;
    line-height: 1.4;
    margin: 0;
}

/* Newsletter icons */
.newsletter-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin-right: 5px;
    margin-bottom: 3px;
    vertical-align: middle;
    opacity: 0.9;
}

/* Email section */
.email-section, .form-section {
    margin-bottom: 30px;
}

.email-section input, .form-section input {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ffffff;
    font-size: 1em;
    font-family: var(--font-mono);
    font-weight: 200;
    color: white;
    background: transparent;
    transition: border-color 0.2s ease;
}

.email-section input:focus, .form-section input:focus {
    outline: none;
    border-bottom-color: white;
}

.email-section input::placeholder, .form-section input::placeholder {
    color: white;
    opacity: 0.7;
}

/* Improved label and textarea styling for admin forms */
.email-section label, .form-section label {
    display: block;
    margin-bottom: 8px;
}

.email-section textarea, .form-section textarea {
    width: 100%;
    min-height: 12em; /* ~10+ lines */
    padding: 10px 12px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 1em;
    line-height: 1.4;
    font-family: var(--font-sans);
    color: white;
    background: transparent;
    resize: vertical;
}

.email-section textarea:focus, .form-section textarea:focus {
    outline: none;
    border-color: white;
}

.email-section textarea::placeholder, .form-section textarea::placeholder {
    color: white;
    opacity: 0.7;
}

/* Subscription summary */
.subscription-summary {
    border: 1px solid #ffffff;
    padding: 10px 20px 0px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.subscription-summary h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
}

.selected-newsletters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.selected-newsletter {
    background: black;
    padding: 6px 12px;
    font-size: 0.8em;
    font-weight: normal;
}

.email-display {
    font-size: 0.9em;
    font-family: var(--font-mono);
    text-decoration: underline;
}

/* Pricing section */
.price-input {
    margin-bottom: 15px;
}

.amount-input {
    display: flex;
    align-items: center;
}

.currency {
    padding-right: 10px;
    font-weight: normal;
}

.amount-input input {
    width: 60px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 1.1em;
    font-family: var(--font-mono);
    background: transparent;
}

.per-month {
    font-size: 0.9em;
    margin-left: 20px;
}

.amount-input input:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.amount-input input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.amount-input input {
    color: white;
}

.amount-input input::placeholder {
    color: white;
    opacity: 0.7;
}

/* Fee breakdown */
.fee-breakdown {
    background: blue;
    padding: 15px 0px;
    opacity: 0.5;
    margin-bottom: 20px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.fee-row.total {
    border-top: 1px solid #e0e0e0;
    padding-top: 8px;
    margin-top: 8px;
    font-weight: normal;
}



/* Buttons */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.primary-button, .secondary-button {
    padding: 12px 20px;
    border: 1px solid white;
    border-radius: 8px;
    background: transparent;
    color: white;
    font-size: 0.9em;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font-mono);
}

.primary-button:hover, .secondary-button:hover {
    border: 1px dashed white;
}

.primary-button:disabled {
    background: #f0f0f0;
    color: #c8c8c8;
    border-color: #e0e0e0;
    cursor: not-allowed;
}


/* hi (: */

.rabbithole {
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.99), 0 0 6px rgba(255, 255, 255, 0.99);
}

/* Responsive design */
@media (max-width: 480px) {
    .container {
        margin-top: 20px;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .container.pricing-page {
        padding-bottom: 80px;
    }
    
    .form-actions button, .form-actions a {
        width: auto;
    }
    
    .page-header h1 {
        font-size: 1.5em;
    }
}

/* Force hand cursor on all links - debugging version */
a {
    cursor: pointer !important;
}

a:hover {
    cursor: pointer !important;
}

a:active {
    cursor: pointer !important;
}

a:visited {
    cursor: pointer !important;
}

/* Pricing page specific styles */
#card-element {
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    margin: 20px 0;
    border-radius: 4px;
    background: white;
}

#card-errors {
    color: #fa755a;
    margin-top: 10px;
}

.payment-section {
    display: none;
    margin-top: 20px;
}

.payment-section.active {
    display: block;
}

.fee-display {
    font-size: 0.9em;
    color: var(--color-text-muted);
    opacity: 0.6;
    margin-bottom: 20px;
}

/* Footer */
.page-footer {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-footer p {
    font-size: 0.9em;
    font-family: var(--font-mono);
    opacity: 0.5;
    font-weight: 200;
    margin-bottom: 0;
}

.page-footer a {
    text-decoration: underline;
}

/* Background drawings - same as Ghost theme */
.bg-drawing {
    position: fixed;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(2px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Success Page Styles */
.success-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.success-message {
    text-align: left;
    max-width: 600px;
    padding: 2rem;
}

.success-message h1 {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 1.2em;
    margin-bottom: 1rem;
    color: white;
}

.success-message > p {
    font-size: 1em;
    margin-bottom: 1rem;
    color: white;
}

.subscription-details {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.detail-item {
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: white;
    margin-right: 0.5rem;
}

.status-active {
    color: #90EE90;
    font-weight: bold;
    text-transform: capitalize;
}

.newsletter-list {
    margin-top: 0.5rem;
}

.newsletter-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    font-size: 0.9em;
    color: white;
}

.newsletter-icon-small {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    filter: brightness(0) invert(1);
}

.welcome-text {
    font-size: 1.1em;
    margin: 2rem 0;
    color: white;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.action-buttons .primary-button,
.action-buttons .secondary-button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 400;
    transition: all 0.3s ease;
    border: 1px solid;
}

.action-buttons .primary-button {
    background: white;
    color: blue;
    border-color: white;
}

.action-buttons .primary-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: blue;
}

.action-buttons .secondary-button {
    background: transparent;
    color: white;
    border-color: white;
}

.action-buttons .secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Mobile responsiveness for success page */
@media (max-width: 768px) {
    .success-message {
        padding: 1rem;
        margin: 1rem;
    }
    
    .success-message h1 {
        font-size: 2em;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .primary-button,
    .action-buttons .secondary-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
} 