/* ========================================
   ALBUM POSTER MAKER STYLES
   Desktop-focused high-quality poster creation
   ======================================== */

/* SEO Content Section Styles */
.seo-content {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-top: 2rem;
}

.seo-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.content-section h2 {
    color: #1DB954;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.content-section h4 {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.content-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.content-section ul, .content-section ol {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Uses Grid */
.uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.use-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #1DB954;
}

.use-card h3 {
    color: #1DB954;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.use-card h3 svg {
    width: 20px;
    height: 20px;
    fill: #1DB954;
}

.use-card p {
    color: #555;
    margin-bottom: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    text-align: center;
}

.feature-item h4 {
    color: #1DB954;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feature-item h4 svg {
    width: 18px;
    height: 18px;
    fill: #1DB954;
}

.feature-item p {
    color: #555;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Coming Soon Section */
.coming-soon {
    background: linear-gradient(135deg, #1DB954 0%, #1aa34a 100%);
    color: white;
}

.coming-soon h2 {
    color: white;
}

.coming-soon h3 {
    color: white;
}

.coming-soon p,
.coming-soon ul,
.coming-sool li {
    color: rgba(255,255,255,0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .seo-content {
        padding: 2rem 0;
    }

    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .uses-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Override global .main restriction - poster maker needs full width */
.poster-maker-main {
    max-width: none;  /* Remove 800px limit from style.css */
    padding: 0;       /* Remove default padding */
    margin: 0;        /* Remove auto centering */
    width: 100%;      /* Use full screen width */
}

/* Desktop notice for mobile users */
.desktop-notice {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 1rem;
    text-align: center;
    margin: 1rem;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .desktop-notice {
        display: block;
    }
}

/* Main poster container */
.poster-container {
    display: grid;
    grid-template-columns: 7fr 3fr;  /* 70:30 ratio for preview:sidebar */
    gap: 1rem;
    padding: 1rem;
    max-width: 100%;
    margin: 0;
    min-height: calc(100vh - 150px);
}

.poster-container.sidebar-collapsed {
    grid-template-columns: 1fr 0;
}

@media (max-width: 1024px) {
    .poster-container {
        grid-template-columns: 1fr;
    }

    .controls-sidebar {
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Loading state */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #1DB954;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Controls sidebar */
.controls-sidebar {
    background: #ffffff;
    border-left: 1px solid #e9ecef;
    padding: 0; /* Remove padding, toggle button will add its own */
    height: calc(100vh - 150px);
    position: sticky;
    top: 1rem;
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.controls-sidebar.collapsed {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* Floating toggle button (shows when sidebar is hidden) */
.floating-toggle {
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: #1DB954;
    border: none;
    border-radius: 8px 0 0 8px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    box-shadow: -2px 2px 12px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.floating-toggle:hover {
    background: #1ed760;
    transform: translateY(-50%) translateX(-2px);
    box-shadow: -4px 4px 16px rgba(0,0,0,0.3);
}

.floating-toggle .toggle-icon {
    font-size: 1.5rem;
    color: white;
    display: block;
    line-height: 1;
}

/* Toggle button inside sidebar */
.sidebar-toggle-inner {
    width: 100%;
    background: #f8f9fa;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-toggle-inner:hover {
    background: #e9ecef;
}

.sidebar-toggle-inner .toggle-icon {
    font-size: 1.2rem;
    color: #666;
}

.sidebar-toggle-inner .toggle-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

/* Add padding to control sections now that sidebar has no padding */
.control-section {
    padding: 0.6rem 1rem;
    margin-bottom: 0;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #e9ecef;
}

.control-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.control-section h2 {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: #1a1a1a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.control-section h2::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.control-section.collapsed h2::after {
    transform: rotate(-90deg);
}

.control-section-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.control-section.collapsed .control-section-content {
    max-height: 0;
    opacity: 0;
}

/* URL input group */
.url-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.url-input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #1DB954;
    box-shadow: 0 0 0 3px rgba(29, 185, 84, 0.1);
}

/* Buttons */
.btn-primary {
    background: #1DB954;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary:hover {
    background: #1ed760;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

/* Layout options */
.layout-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.layout-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.layout-btn:hover:not(:disabled) {
    border-color: #1DB954;
    background: #f8fff8;
}

.layout-btn.active {
    border-color: #1DB954;
    background: #e8f5e9;
}

.layout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.layout-preview {
    width: 100%;
    display: flex;
    justify-content: center;
}

.layout-icon {
    font-size: 2rem;
}

.layout-btn span {
    font-weight: 600;
    font-size: 0.85rem;
    color: #1a1a1a;
}

.layout-btn small {
    font-size: 0.75rem;
    color: #666;
}

/* Control groups */
.control-group {
    margin-bottom: 1.5rem;
}

.control-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.control-group input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #1DB954 0%, #1DB954 var(--value, 50%), #e9ecef var(--value, 50%), #e9ecef 100%);
    outline: none;
    -webkit-appearance: none;
    transition: all 0.2s ease;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1DB954;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(29, 185, 84, 0.3);
    border-width: 3px;
}

.control-group input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.05);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #1DB954;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.control-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(29, 185, 84, 0.3);
    border-width: 3px;
}

.range-value {
    float: right;
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

/* Toggle switches */
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

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

.toggle-slider {
    width: 44px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    position: relative;
    transition: background 0.3s;
    margin-right: 0.75rem;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 3px;
    left: 3px;
    transition: transform 0.3s;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider {
    background: #1DB954;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.9rem;
    color: #333;
}

/* Export buttons */
.export-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-export {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
}

.export-info {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
}

.export-info small {
    color: #666;
}

/* Preview area */
.preview-area {
    background: #f5f5f5; /* Light gray to match website theme (not dark) */
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    overflow: auto;
}

/* Empty state */
.empty-state {
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.empty-state h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.empty-state p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.empty-state-tips {
    background: rgba(29, 185, 84, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(29, 185, 84, 0.2);
    text-align: left;
}

.empty-state-tips h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.empty-state-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.empty-state-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
    font-size: 0.9rem;
}

.empty-state-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1DB954;
    font-weight: bold;
}

/* Canvas container */
.canvas-container {
    width: 95%; /* Take up 95% of preview area width */
    max-width: none; /* Remove max-width restriction! */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Zoom controls */
.zoom-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 10;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.zoom-btn:hover {
    background: #f8f9fa;
    border-color: #1DB954;
    color: #1DB954;
    transform: translateY(-1px);
}

.zoom-btn:active {
    transform: translateY(0);
}

.zoom-level {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    min-width: 45px;
    text-align: center;
}

.canvas-wrapper {
    background: transparent; /* Remove white background */
    padding: 0; /* Remove padding */
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4); /* Stronger shadow for depth */
    width: 100%;
    transform-origin: top center;
    transition: transform 0.3s ease;
}

#posterCanvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.preview-info {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

#albumInfo {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
