/* Tool Hero Section - Required by tool-page-structure.mdc */
.tool-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.hero-text {
    flex: 1;
    min-width: 260px;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 740px;
    margin-bottom: 1rem;
    margin-top: 0;
}

@media (max-width: 767px) {
    .hero-text h1 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
    }
}

/* Split Complementary Tool Styles */
.split-complementary-tool {
    margin-bottom: 2rem;
    position: relative;
    overflow: visible;
}

.tool-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: visible;
}

/* Input Section */
.input-section {
    width: 100%;
    position: relative;
    overflow: visible;
}

.input-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}

.color-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: relative;
    overflow: visible;
}

.color-text-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    
    transition: all 0.2s ease;
    background: #ffffff;
    color: #111827;
}

.color-text-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.color-text-input::placeholder {
    color: #9ca3af;
}

.color-picker-button {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
}

.color-picker-button:hover {
    border-color: #6366f1;
    transform: scale(1.05);
}

.color-picker-button:active {
    transform: scale(0.98);
}

.color-preview {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: #ff6b6b;
}

.native-color-picker {
    position: fixed;
    opacity: 0;
    width: 0;
    height: 0;
    border: none;
    padding: 0;
    margin: 0;
    pointer-events: none;
    visibility: hidden;
}

.input-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Scheme Section */
.scheme-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

.scheme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.scheme-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.scheme-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-button.primary {
    background: #6366f1;
    color: #ffffff;
}

.action-button.primary:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.action-button.secondary {
    background: #f3f4f6;
    color: #374151;
}

.action-button.secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.action-button svg {
    flex-shrink: 0;
}

/* Color Swatches */
.color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.color-swatch {
    position: relative;
    background: #f9fafb;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    overflow: hidden;
}

.color-swatch:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.swatch-color {
    width: 100%;
    height: 120px;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    background: #ff6b6b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.swatch-color:hover {
    transform: scale(1.02);
}

.swatch-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.swatch-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.swatch-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    
}

.swatch-copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-swatch:hover .swatch-copy-btn {
    opacity: 1;
}

.swatch-copy-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    color: #6366f1;
}

/* Wheel Section */
.wheel-section {
    width: 100%;
}

.wheel-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

.wheel-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.wheel-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 1.5rem 0;
}

.wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 400px;
}

.color-wheel-canvas {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 50%;
    cursor: crosshair;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease;
}

.color-wheel-canvas:hover {
    transform: scale(1.02);
}

.wheel-pointers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wheel-pointer {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.wheel-pointer.base-pointer {
    width: 24px;
    height: 24px;
    border-width: 4px;
    z-index: 10;
}

.wheel-pointer.split-pointer {
    width: 18px;
    height: 18px;
    border-width: 3px;
    z-index: 9;
}

/* Variations Section */
.variations-section {
    width: 100%;
}

.variations-header {
    margin-bottom: 1.5rem;
}

.variations-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.variations-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 1rem;
}

.variation-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variation-item:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.variation-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.variation-color {
    flex: 1;
    height: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variation-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

/* Info Section */
.info-section {
    width: 100%;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    color: #ffffff;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #ffffff;
}

.info-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    opacity: 0.95;
}

.info-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.feature-text {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #111827;
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-width: 320px;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    flex-shrink: 0;
    color: #10b981;
}

.toast-message {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-wrapper {
        gap: 1.5rem;
    }

    .input-card,
    .scheme-section,
    .wheel-card {
        padding: 1.25rem;
    }

    .scheme-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .scheme-actions {
        width: 100%;
    }

    .action-button {
        flex: 1;
        justify-content: center;
    }

    .color-swatches {
        grid-template-columns: 1fr;
    }

    .wheel-container {
        max-width: 100%;
    }

    .color-wheel-canvas {
        max-width: 100%;
    }

    .variations-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

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

    .info-card {
        padding: 1.5rem;
    }

    .toast-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        transform: translateY(100px);
    }

    .toast-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .color-input-wrapper {
        flex-direction: column;
    }

    .color-picker-button {
        width: 100%;
        height: 48px;
    }

    .swatch-copy-btn {
        opacity: 1;
    }

    .variations-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .input-card,
    .scheme-section,
    .wheel-card {
        background: #1f2937;
        border-color: #374151;
    }

    .input-label,
    .scheme-title,
    .wheel-title,
    .variations-title {
        color: #f9fafb;
    }

    .color-text-input {
        background: #111827;
        border-color: #374151;
        color: #f9fafb;
    }

    .color-picker-button {
        background: #111827;
        border-color: #374151;
    }

    .color-swatch {
        background: #1f2937;
        border-color: #374151;
    }

    .swatch-value {
        color: #f9fafb;
    }

    .action-button.secondary {
        background: #374151;
        color: #f9fafb;
    }

    .variation-item {
        background: #1f2937;
        border-color: #374151;
    }
}
