/* Love Calculator - Styles */

/* Love Form Container */
.love-form-container {
    background: linear-gradient(135deg, #ffeef8 0%, #fff5f7 100%);
    border-radius: 20px;
    padding: 40px 30px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .love-form-container {
    background: linear-gradient(135deg, #2d1a24 0%, #2d2329 100%);
}

.love-form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.love-input-group {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.love-label {
    font-weight: 600;
    font-size: 15px;
    color: #d63384;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-bs-theme="dark"] .love-label {
    color: #ff6b9d;
}

.input-with-icon {
    position: relative;
}

.love-input {
    padding: 15px 50px 15px 20px;
    border: 2px solid #ffc0cb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.love-input:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 0.2rem rgba(255, 105, 180, 0.15);
    outline: none;
    background: white;
}

[data-bs-theme="dark"] .love-input {
    background: #1a1d21;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .love-input:focus {
    background: #2d3239;
    border-color: #ff69b4;
    color: #e9ecef;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    pointer-events: none;
}

/* Love Connector */
.love-connector {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.heart-pulse {
    font-size: 48px;
    animation: heart-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 105, 180, 0.4));
}

@keyframes heart-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Calculate Button */
.love-calculate-btn {
    background: linear-gradient(135deg, #ff6b9d, #c94b70);
    border: none;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
    transition: all 0.3s ease;
}

.love-calculate-btn:hover {
    background: linear-gradient(135deg, #ff5a8f, #b43d60);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 105, 180, 0.4);
}

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

/* Result Container */
.love-result-container {
    margin: 40px 0;
}

.love-result-card {
    background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .love-result-card {
    background: linear-gradient(135deg, #2d3239 0%, #2d1a24 100%);
}

.love-result-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.love-result-card::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

/* Percentage Circle */
.love-percentage-display {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.percentage-circle {
    position: relative;
    width: 200px;
    height: 200px;
    max-width: 100%;
}

.progress-ring {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
    display: block;
}

.progress-ring-bg {
    opacity: 0.2;
}

[data-bs-theme="dark"] .progress-ring-bg {
    stroke: #495057;
}

.progress-ring-circle {
    transition: stroke-dashoffset 2s ease-out;
    stroke-linecap: round;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: 900;
    color: #ff6b9d;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: baseline;
    line-height: 1;
}

[data-bs-theme="dark"] .percentage-text {
    color: #ff69b4;
}

.percentage-symbol {
    font-size: 32px;
    margin-left: 4px;
}

/* Result Text */
.love-result-text {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.love-status {
    font-size: 32px;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(214, 51, 132, 0.1);
}

[data-bs-theme="dark"] .love-status {
    color: #ff6b9d;
}

.love-names {
    font-size: 24px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

[data-bs-theme="dark"] .love-names {
    color: #adb5bd;
}

.love-description {
    font-size: 16px;
    color: #495057;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

[data-bs-theme="dark"] .love-description {
    color: #adb5bd;
}

.love-emoji-display {
    font-size: 64px;
    margin-top: 20px;
    animation: emoji-bounce 1s ease-in-out;
    position: relative;
    z-index: 1;
}

@keyframes emoji-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Share Section */
.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* History Table */
.history-table {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.history-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.history-table th,
.history-table td {
    padding: 14px;
    text-align: center;
}

.history-table th {
    background: #ffeef8;
    font-weight: 600;
    color: #d63384;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #ffc0cb;
}

[data-bs-theme="dark"] .history-table th {
    background: #2d1a24;
    color: #ff6b9d;
    border-bottom-color: #495057;
}

.history-table tbody tr {
    border-bottom: 1px solid #ffc0cb;
    transition: background 0.2s ease;
}

.history-table tbody tr:hover {
    background: #fff5f7;
}

[data-bs-theme="dark"] .history-table tbody tr {
    border-bottom-color: #495057;
}

[data-bs-theme="dark"] .history-table tbody tr:hover {
    background: #343a40;
}

.love-names-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    background: linear-gradient(135deg, #ffeef8, #fff5f7);
    color: #d63384;
    border: 1px solid #ffc0cb;
}

[data-bs-theme="dark"] .love-names-badge {
    background: linear-gradient(135deg, #2d1a24, #2d2329);
    color: #ff6b9d;
    border-color: #495057;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
    background: #ff69b4;
    color: white;
}

/* Floating Hearts Animation */
.floating-heart {
    position: fixed;
    font-size: 32px;
    pointer-events: none;
    z-index: 9999;
    transition: all 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
}

/* Tips Alert */
.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    border-color: #b8daff;
    border-left: 4px solid #0c5460;
}

[data-bs-theme="dark"] .alert-info {
    background: linear-gradient(135deg, #1a3a40, #1a2f35);
    border-color: #17a2b8;
    color: #b8daff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .love-form-container {
        padding: 30px 20px;
    }

    .heart-pulse {
        font-size: 36px;
    }

    .love-calculate-btn {
        padding: 12px 32px;
        font-size: 16px;
    }

    .love-result-card {
        padding: 30px 20px;
    }

    .percentage-circle {
        width: 160px;
        height: 160px;
    }

    .percentage-text {
        font-size: 36px;
    }

    .percentage-symbol {
        font-size: 24px;
    }

    .love-status {
        font-size: 24px;
    }

    .love-names {
        font-size: 18px;
    }

    .love-emoji-display {
        font-size: 48px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .love-form-container {
        padding: 25px 15px;
    }

    .love-input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }

    .input-icon {
        font-size: 20px;
        right: 12px;
    }

    .heart-pulse {
        font-size: 32px;
    }

    .love-connector {
        margin: 20px 0;
    }

    .love-calculate-btn {
        padding: 10px 24px;
        font-size: 15px;
    }

    .love-result-card {
        padding: 25px 15px;
    }

    .percentage-circle {
        width: 140px;
        height: 140px;
    }

    .percentage-text {
        font-size: 30px;
    }

    .percentage-symbol {
        font-size: 20px;
    }

    .love-status {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .love-names {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .love-description {
        font-size: 13px;
        padding: 0 10px;
    }

    .love-emoji-display {
        font-size: 36px;
        margin-top: 15px;
    }

    .floating-heart {
        font-size: 24px;
    }
}
