/*
Theme Name: Creator Theme Stack
Description: Complete creator platform theme with all functionality built-in
Author: Creator Stack
Version: 1.0.0
Text Domain: creator-theme-stack
*/

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #00aeef 0%, #ff69b4 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Homepage specific - no gradient background */
body.page-template-page-homepage {
    background: none !important;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 800;
}

/* General link styles */
a {
    color: #00aeef;
    text-decoration: none;
}

a:hover {
    color: #000;
}

.container,
div.container,
main .container {
    max-width: 1200px !important;
    margin: 20px auto !important;
    padding: 30px !important;
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Primary Menu Styles */
.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
    align-items: center;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    text-decoration: none;
    color: #00aeef;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.primary-menu a:hover {
    background-color: #f8f9fa;
    color: #000;
}

.primary-menu .current-menu-item a,
.primary-menu .current_page_item a {
    background-color: #00aeef;
    color: white;
}

/* Creator Platform Styles */
.cs-form {
    background: white;
    padding: 30px;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.cs-form-group {
    margin-bottom: 20px;
}

.cs-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    white-space: nowrap;
}

.cs-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cs-form-control:focus {
    border-color: #00aeef;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.2);
}



.cs-btn, button, input[type="submit"], input[type="button"] {
    background: #fff200;
    color: #000;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.cs-btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background: #000;
    color: white;
    text-decoration: none;
}

.cs-btn-secondary:hover {
    background: #000;
    color: white;
}

/* Dashboard Styles */
.cs-dashboard {
    padding: 20px 0;
}

.cs-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #00aeef 0%, #ff69b4 100%);
    color: white;
    border-radius: 8px;
}

.cs-dashboard-header h1 {
    margin: 0;
    font-size: 32px;
}

.cs-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.cs-stat-card {
    background: white;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cs-stat-card h3 {
    margin: 0 0 15px 0;
    color: #000;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cs-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #00aeef;
    margin: 0;
}

/* Table Styles */
.cs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.cs-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.cs-table tbody tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.cs-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.cs-status-badge.status-pending {
    background: #fff200;
    color: #000;
}

.cs-status-badge.status-approved {
    background: #d4edda;
    color: #155724;
}

.cs-status-badge.status-paid {
    background: #cce5ff;
    color: #004085;
}

.cs-status-badge.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

/* Login Form */
.cs-login-form {
    max-width: 400px;
    margin: 50px auto;
}

.cs-login-form h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* Messages */
.cs-message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.cs-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cs-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.cs-message.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #000;
}

.cs-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cs-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .cs-stat-number {
        font-size: 28px;
    }
    
    .cs-form {
        padding: 20px;
        margin: 0 10px;
    }
    
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }
}

/* Original Creator Stack Classes */
.cs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cs-login-required {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    color: #000;
    text-align: center;
    margin: 20px 0;
}

.cs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin-bottom: 0;
}

.cs-checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.cs-success-message {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.cs-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
}

.cs-form-row {
    display: flex;
    gap: 20px;
}

.cs-form-row .cs-form-group {
    flex: 1;
}

.cs-checkbox-group {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
    margin-top: 10px;
}

.cs-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.cs-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.cs-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.cs-radio-label input[type="radio"] {
    margin: 0;
}

/* Disabled button styles */
.cs-btn:disabled, .cs-submit-btn:disabled {
    background: #cccccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.cs-submissions-container {
    margin: 20px 0;
}

.cs-submissions-table,
.cs-submissions-list {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.cs-submission-item {
    background: white;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 15px;
}

.cs-submission-link {
    text-decoration: none;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-submission-title {
    font-weight: bold;
}

.cs-form-note {
    font-size: 14px;
    color: #000;
    margin-top: 5px;
}

/* Utility Classes */
.cs-text-center { text-align: center; }
.cs-text-left { text-align: left; }
.cs-text-right { text-align: right; }

.cs-mb-10 { margin-bottom: 10px; }
.cs-mb-20 { margin-bottom: 20px; }
.cs-mb-30 { margin-bottom: 30px; }

.cs-mt-10 { margin-top: 10px; }
.cs-mt-20 { margin-top: 20px; }
.cs-mt-30 { margin-top: 30px; }

.cs-p-10 { padding: 10px; }
.cs-p-20 { padding: 20px; }
.cs-p-30 { padding: 30px; }

/* ==============================================
   CUSTOM CSS FROM WORDPRESS ADDITIONAL CSS
   ==============================================*/

/* Site title styles */
.site-title { 
    display: block; 
}

/* Hero content styling */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
    max-width: unset;
    top: 0px;
    left: 0px;
    right: 0px;
    margin: 60px;
    height: auto;
    background: rgba(0,0,0,.5); 
    border-radius: 20px;
}

/* Button Styles */
.cs-btn, .cs-submit-btn { 
    background: #fff200;
    color: #000;
    padding: 15px 45px; 
    border-radius: 8px; 
    border: 0px; 
    font-size: 16px; 
    text-decoration: none; 
    font-weight: 400; 
    transition: .3s ease; 
    text-align: center;
}

.cs-btn-secondary { 
    padding: 10px 15px;
    font-size: 14px;
    text-transform: uppercase;
    background: #00aeef;
    margin: 2px;
    font-weight: 600;
}

/* Additional button hover styles */
.cs-btn:hover, .cs-submit-btn:hover {
    background: #000;
    color: white;
}

.cs-btn-secondary:hover {
    background: #000;
    color: white;
}

/* Select Dropdown Styling */
select {
    appearance: none;           /* Remove native arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #a1a1a1;
    border-radius: 3px;
    padding: 10px 40px 10px 15px; 
    font-size: 16px;
    font-family: inherit;
    color: #333;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    
    /* Custom arrow positioning */
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    
    /* Custom arrow with base64 SVG */
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48cGF0aCBkPSJNNCA2bDQgNCA0LTQiIHN0cm9rZT0iIzMzMyIgc3Ryb2tlLXdpZHRoPSIyIiBmaWxsPSJub25lIi8+PC9zdmc+");
}

/* Select hover + focus states */
select:hover {
    border-color: #000;
}

select:focus {
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0,174,239,0.25);
}

/* Select disabled state */
select:disabled {
    background-color: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

/* Profile Image as Background */
.cs-current-image {
    width: 200px;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    background-color: #f0f0f0;
    display: block;
}

.cs-current-image img {
    display: none; /* Hide the img element if it exists */
}

/* Filter Dropdowns Width */
#submission-payout-filter,
#submission-status-filter,
#creator-role-filter,
#metadata-status-filter {
    width: calc(100% + 40px);
    max-width: 240px;
}

/* Additional Header and Layout Styles */
.site-header { 
    background-size: cover; 
    background-position: center !important; 
    padding: 40px 20px !important; 
    border-bottom: 0px !important; 
    display: flex;
    align-items: center;
    min-height: 120px;
}

.site-header .container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.site-main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.site-footer { 
    padding: 40px 20px !important; 
}

/* Review Section Styling */
.cs-review-section {
    margin-bottom: 20px;
}

/* Universal Button Styling */
button, 
.cs-btn, 
.btn, 
input[type="submit"], 
input[type="button"] {
    padding: 10px 15px !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
}

/* Footer Styles */
.site-footer {
    background: #000;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
}

.site-footer p {
    color: #000;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: #000;
    margin-bottom: 15px;
}

.footer-section p {
    color: #000;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #00aeef;
    text-decoration: none;
}

.footer-section a:hover {
    color: #000;
}

.footer-bottom {
    border-top: 1px solid #555;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #000;
    margin: 0;
    font-size: 14px;
}

.footer-bottom .separator {
    margin: 0 10px;
}

.footer-bottom a {
    color: #00aeef;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #000;
}

/* Payout Management Styles */
.payout-sections-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.payout-form-section {
    flex: 1;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.payout-history-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .payout-sections-container {
        flex-direction: column;
        gap: 20px;
    }
}

.creator-info-hidden {
    display: none;
}

/* Additional form and payout management styles */
.payout-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.form-control:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

.creator-info {
    margin: 25px 0;
}

.info-card {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
}

.info-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #007cba;
}

.info-card p {
    margin: 8px 0;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #007cba;
    color: white;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #005a87;
}

.btn-success {
    background-color: #28a745;
    color: white;
    font-size: 16px;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.table-striped tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-striped tbody tr:hover {
    background-color: #f0f7ff;
}

.payment-type {
    background: #007cba;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.total-row {
    background-color: #e8f4f8 !important;
    border-top: 2px solid #007cba;
    font-weight: bold;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .payout-form-section, .payout-history-section {
        padding: 20px 15px;
    }
    
    .payout-form {
        max-width: 100%;
    }
    
    .table th, .table td {
        padding: 8px;
        font-size: 13px;
    }
}

/* Remove Creator Button */
.remove-creator {
    position: relative;
    top: 0px;
    right: 0px;
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 10px;
}

.remove-creator:hover {
    background-color: #c82333;
}

/* Genre Selection Styling */
.cs-genre-option {
    display: block !important;
    margin: 5px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.cs-genre-option:hover {
    background: #e9ecef;
    border-color: #28a745;
}

.cs-genre-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
}

.cs-genre-option input[type="checkbox"]:checked + span,
.cs-genre-option:has(input[type="checkbox"]:checked) {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

#genre-selection-container {
    margin-top: 20px;
}

#genre-selection-container.hidden {
    display: none !important;
}

/* Issue Range Styling */
.cs-issue-range-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cs-issue-range-checkbox:hover {
    background: #e9ecef;
    border-color: #007cba;
}

.cs-issue-range-checkbox input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

.cs-issue-range-fields {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 10px;
}

.cs-issue-range-input {
    flex: 1;
    position: relative;
}

.cs-issue-range-input input {
    width: 100%;
    text-align: center;
    font-weight: bold;
}

.cs-issue-range-separator {
    padding: 0 10px;
    font-weight: bold;
    color: #007cba;
    font-size: 16px;
}

.cs-issue-range-fields .cs-form-note {
    margin: 5px 0 0 0;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

/* Error styling for issue ranges */
.cs-issue-range-input input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Animation for showing/hiding containers */
.cs-issue-container {
    transition: all 0.3s ease;
    overflow: hidden;
}

.cs-issue-container.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

/* Genre Submission Type Labels */
.genre-submission-type {
    font-size: 0.8em;
    color: #666;
    font-weight: normal;
    font-style: italic;
    margin-left: 8px;
}

