/* Lucky Color Fashion Coordinator Page Styles */

:root {
    --color-primary: #FF6B6B;
    --color-secondary: #4ECDC4;
    --color-accent: #FFE66D;
    --color-dark: #2D3436;
    --color-light: #FFF9F0;
    --color-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --card-shadow: 0 15px 50px rgba(102, 126, 234, 0.2);
}

/* Container */
.color-container {
    padding-top: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.color-header {
    text-align: center;
    padding: 60px 30px;
    background: var(--color-gradient);
    border-radius: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.header-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

/* Color Wheel Decoration */
.color-wheel-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    animation: wheel-rotate 30s linear infinite;
    opacity: 0.3;
}

@keyframes wheel-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.wheel-segment {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 8px;
    background: var(--color);
    transform-origin: left center;
    transform: rotate(var(--rotation));
    border-radius: 4px;
    filter: blur(2px);
}

.color-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.title-icon {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.title-icon:last-child {
    animation-delay: 0.5s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.color-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.today-date {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.date-icon {
    font-size: 1.2rem;
}

/* Input Section */
.color-input-section {
    background: var(--color-light);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.color-input-section h2 {
    text-align: center;
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.color-input-section h2 span {
    margin-right: 10px;
}

.color-form .form-row {
    display: flex;
    gap: 20px;
}

.color-form .form-group {
    flex: 1;
    margin-bottom: 25px;
}

.color-form label {
    display: block;
    color: var(--color-dark);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.color-form select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.color-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Gender Buttons */
.gender-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gender-btn {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.gender-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.gender-btn.active {
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.gender-icon {
    font-size: 2rem;
}

.gender-btn span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Mood Selector */
.mood-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.mood-btn:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.mood-btn.active {
    border-color: #667eea;
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.mood-icon {
    font-size: 2rem;
}

.mood-btn span:last-child {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
    text-align: center;
}

/* Submit Button */
.color-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    border: none;
    border-radius: 50px;
    color: #FFF5D6;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(107, 82, 16, 0.4);
    margin-top: 10px;
}

.color-submit-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #9B7916 0%, #7B6212 100%);
    box-shadow: 0 15px 50px rgba(107, 82, 16, 0.5);
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-sparkle {
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Result Section */
.color-result-section {
    animation: slide-up 0.6s ease;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Zodiac Info Card */
.zodiac-info-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: var(--card-shadow);
}

.zodiac-icon-large {
    font-size: 4rem;
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.zodiac-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zodiac-name {
    font-size: 1.8rem;
    font-weight: 700;
}

.zodiac-date {
    font-size: 1rem;
    opacity: 0.9;
}

.zodiac-element {
    font-size: 1rem;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
}

/* Lucky Color Section */
.lucky-color-section {
    background: white;
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.lucky-color-section h2 {
    text-align: center;
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.lucky-color-section h2 span {
    margin-right: 10px;
}

/* Main Lucky Color */
.main-lucky-color {
    display: flex;
    align-items: center;
    gap: 40px;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    padding: 35px;
    margin-bottom: 30px;
}

.color-preview-large {
    position: relative;
    flex-shrink: 0;
}

.color-orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.color-orb::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 30%;
    height: 20%;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    filter: blur(5px);
}

.color-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: color-pulse 3s ease-in-out infinite;
}

@keyframes color-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.7; }
}

.color-info {
    flex: 1;
}

.color-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.color-meaning {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.color-code-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    width: fit-content;
}

.color-hex {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background: var(--color-gradient);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.05);
}

/* Sub Colors */
.sub-colors {
    margin-top: 30px;
}

.sub-colors h4 {
    text-align: center;
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.sub-color-chips {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sub-color-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sub-color-chip:hover {
    transform: translateY(-5px);
}

.chip-color {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 3px solid white;
}

.chip-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
}

.chip-hex {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #888;
}

/* Fashion Section */
.fashion-section {
    background: var(--color-light);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
}

.fashion-section h2 {
    text-align: center;
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.fashion-section h2 span {
    margin-right: 10px;
}

/* Outfit Cards */
.outfit-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.outfit-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.outfit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.outfit-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.outfit-icon {
    font-size: 1.5rem;
}

.outfit-header h4 {
    color: var(--color-dark);
    font-size: 1.1rem;
    margin: 0;
}

.outfit-color-chip {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border: 4px solid white;
}

.outfit-color-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.outfit-suggestion {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.outfit-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hex-code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #888;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 5px;
}

.copy-btn-sm {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn-sm:hover {
    background: var(--color-gradient);
    color: white;
}

/* Coordination Preview */
.coordination-preview {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
}

.coordination-preview h4 {
    color: var(--color-dark);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.color-palette-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.palette-item {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.palette-item:hover {
    transform: scale(1.1);
}

.palette-item.main {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.palette-desc {
    color: #666;
    font-size: 0.95rem;
}

/* Daily Tips Section */
.daily-tips-section {
    background: white;
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.daily-tips-section h2 {
    text-align: center;
    color: var(--color-dark);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.daily-tips-section h2 span {
    margin-right: 10px;
}

.tips-container {
    display: grid;
    gap: 15px;
}

.tip-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    border-left: 4px solid;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-title {
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.tip-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Avoid Colors Section */
.avoid-colors-section {
    background: linear-gradient(145deg, #fff5f5 0%, #ffe5e5 100%);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 0, 0, 0.1);
}

.avoid-colors-section h2 {
    text-align: center;
    color: #c0392b;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.avoid-colors-section h2 span {
    margin-right: 10px;
}

.avoid-colors-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.avoid-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avoid-color-chip {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    position: relative;
    border: 3px solid white;
}

.avoid-color-chip::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.avoid-color-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c0392b;
}

.avoid-color-reason {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    max-width: 120px;
}

/* Result Actions */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.retry-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.retry-btn {
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
}

.retry-btn:hover {
    background: #667eea;
    color: white;
}

.share-btn {
    background: var(--color-gradient);
    color: white;
    box-shadow: 0 5px 25px rgba(102, 126, 234, 0.3);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(102, 126, 234, 0.4);
}

/* Copy Toast */
.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #2ecc71;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(46, 204, 113, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .color-header {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .color-title {
        font-size: 1.8rem;
    }

    .color-subtitle {
        font-size: 1rem;
    }

    .color-wheel-decoration {
        width: 200px;
        height: 200px;
    }

    .wheel-segment {
        width: 60px;
    }

    .color-input-section {
        padding: 30px 20px;
    }

    .color-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .gender-buttons {
        flex-wrap: nowrap;
    }

    .gender-btn {
        min-width: auto;
        padding: 15px 10px;
    }

    .gender-icon {
        font-size: 1.5rem;
    }

    .mood-selector {
        grid-template-columns: 1fr;
    }

    .zodiac-info-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .zodiac-icon-large {
        font-size: 3rem;
        padding: 15px;
    }

    .zodiac-name {
        font-size: 1.5rem;
    }

    .lucky-color-section {
        padding: 30px 20px;
    }

    .main-lucky-color {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .color-orb {
        width: 120px;
        height: 120px;
    }

    .color-glow {
        width: 160px;
        height: 160px;
    }

    .color-name {
        font-size: 1.5rem;
    }

    .color-code-box {
        justify-content: center;
        width: 100%;
    }

    .sub-color-chips {
        gap: 15px;
    }

    .chip-color {
        width: 50px;
        height: 50px;
    }

    .fashion-section {
        padding: 30px 20px;
    }

    .outfit-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .outfit-card {
        padding: 20px;
    }

    .outfit-color-chip {
        width: 70px;
        height: 70px;
    }

    .color-palette-preview {
        gap: 8px;
    }

    .palette-item {
        width: 60px;
        height: 60px;
    }

    .palette-item.main {
        width: 80px;
        height: 80px;
    }

    .daily-tips-section,
    .avoid-colors-section {
        padding: 30px 20px;
    }

    .tip-card {
        padding: 15px;
    }

    .avoid-colors-container {
        gap: 20px;
    }

    .avoid-color-chip {
        width: 60px;
        height: 60px;
    }

    .result-actions {
        flex-direction: column;
        align-items: center;
    }

    .retry-btn,
    .share-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .color-title {
        font-size: 1.5rem;
    }

    .gender-buttons {
        gap: 10px;
    }

    .gender-btn {
        padding: 12px 8px;
    }

    .gender-icon {
        font-size: 1.3rem;
    }

    .gender-btn span:last-child {
        font-size: 0.8rem;
    }

    .mood-btn {
        padding: 15px;
    }

    .mood-icon {
        font-size: 1.5rem;
    }

    .mood-btn span:last-child {
        font-size: 0.8rem;
    }

    .color-submit-btn {
        padding: 16px;
        font-size: 1rem;
    }
}

