/*
    EVE Target Intel - Shared Component Styles

    Copyright (C) 2025 moregh (https://github.com/moregh/)
    Licensed under AGPL License.
*/

/* ============================
   Button Components
   ============================ */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal) ease;
    user-select: none;
}

/* Toggle Buttons (used by filters and summary sections) */
.btn-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    user-select: none;
    transition: all var(--transition-normal) ease;
    background: var(--white-05);
    border: 1px solid var(--white-1);
    border-radius: var(--radius-medium);
    padding: 0.4rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    gap: 0.4rem;
}

.btn-toggle:hover {
    background: var(--white-08);
    border-color: var(--border-glow);
}

.btn-toggle .toggle-icon {
    transition: transform var(--transition-normal) ease;
    font-size: 0.7rem;
}



/* Clear Button (for filters) */
.btn-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    user-select: none;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--radius-medium);
    padding: 0.4rem 0.8rem;
    color: var(--danger-color);
    font-size: 0.85rem;
    transition: all var(--transition-normal) ease;
}

.btn-clear:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.5);
}

/* Primary Action Button (for forms) */
.btn-primary,
.check-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    user-select: none;
    gap: 0.72rem;
    margin: 1.35rem auto 0;
    padding: 0.7rem 0.7rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50px;
    font-size: 0.99rem;
    font-weight: 600;
    box-shadow: 0 3.6px 18px var(--border-glow), inset 0 0.9px 0 var(--white-2);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal) ease;
}

.btn-primary::before,
.check-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--white-2), transparent);
    transition: left var(--transition-slow) ease;
}

.btn-primary:hover,
.check-button:hover {
    transform: translateY(-2.7px);
    box-shadow: 0 7.2px 27px rgba(0, 212, 255, 0.4), inset 0 0.9px 0 var(--white-2);
}

.btn-primary:hover::before,
.check-button:hover::before {
    left: 100%;
}

.btn-primary:active,
.check-button:active {
    transform: translateY(-0.9px);
}

.btn-primary:disabled,
.check-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-primary:disabled::before,
.check-button:disabled::before {
    display: none;
}

/* ============================
   Card Components
   ============================ */

.card {
    background: var(--white-03);
    border-radius: 13.5px;
    border-left: 3.6px solid;
    transition: all var(--transition-normal) ease;
    animation: slideIn 0.45s ease forwards;
    opacity: 0;
    transform: translateY(18px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-transparent);
    opacity: 0;
    transition: opacity var(--transition-normal) ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4.5px) translateZ(0);
    background: var(--white-08);
    box-shadow: 0 9px 27px rgba(0, 0, 0, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1.35rem;
    min-height: 3.5rem;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem;
    border-left: 2.7px solid var(--secondary-color);
    min-height: 3rem;
    position: relative;
    z-index: 1;
}

.summary-card:hover {
    transform: translateX(4.5px) translateZ(0);
    background: var(--white-08);
    z-index: 1000;
    position: relative;
    will-change: transform;
}

/* ============================
   Icon Components
   ============================ */

.icon {
    filter: drop-shadow(0 0 4.5px currentColor);
}

.icon-sm {
    font-size: 0.9rem;
}

.icon-md {
    font-size: 1.08rem;
}

.icon-lg {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 9px currentColor);
}

/* ============================
   Badge Components
   ============================ */

.badge {
    display: inline-block;
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-small);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--white-2);
    vertical-align: middle;
}

.badge-war {
    background: var(--gradient-war);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
    animation: warPulse 2s infinite;
}

.badge-info {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    border: 0.9px solid var(--border-glow);
}

/* ============================
   Message Components
   ============================ */

/*
    EVE Target Intel - Error, Warning and Info Messages
    
    Copyright (C) 2025 moregh (https://github.com/moregh/)
    Licensed under AGPL License.
*/

.error-message,
.warning-message,
.info-message,
.success-message {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border-radius: 13.5px;
    padding: 1.35rem;
    margin: 0.9rem 0;
    animation: slideIn 0.45s ease
}

.error-message {
    background: rgba(248, 113, 113, 0.1);
    border: 0.9px solid rgba(248, 113, 113, 0.3);
    border-left: 3.6px solid var(--danger-color)
}

.warning-message {
    background: rgba(251, 191, 36, 0.1);
    border: 0.9px solid rgba(251, 191, 36, 0.3);
    border-left: 3.6px solid var(--warning-color)
}

.info-message {
    background: rgba(34, 197, 94, 0.1);
    border: 0.9px solid rgba(34, 197, 94, 0.3);
    border-left: 3.6px solid var(--info-color)
}

.success-message {
    background: rgba(34, 197, 94, 0.1);
    border: 0.9px solid rgba(34, 197, 94, 0.3);
    border-left: 3.6px solid #22c55e
}

.error-icon,
.warning-icon,
.info-icon,
.success-icon {
    font-size: 1.35rem;
    flex-shrink: 0
}

.error-icon {
    color: var(--danger-color)
}

.warning-icon {
    color: var(--warning-color)
}

.info-icon {
    color: var(--info-color)
}

.success-icon {
    color: #22c55e
}

.error-content,
.warning-content,
.info-content,
.success-content {
    flex: 1
}

.error-title,
.warning-title,
.info-title,
.success-title {
    font-weight: 600;
    margin-bottom: 0.27rem
}

.error-title {
    color: var(--danger-color)
}

.warning-title {
    color: var(--warning-color)
}

.info-title {
    color: var(--info-color)
}

.success-title {
    color: #22c55e
}

.error-text,
.warning-text,
.info-text,
.success-text {
    color: var(--text-secondary);
    font-size: 0.855rem
}

/* ============================
   Footer Components
   ============================ */

/*
    EVE Target Intel - Footer and Legal Sections
    
    Copyright (C) 2025 moregh (https://github.com/moregh/)
    Licensed under AGPL License.
*/

.disclaimer-copyright {
    margin-top: 2.5rem;
    padding: 1.2rem 2rem 0.8rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(251, 191, 36, 0.04) 50%, rgba(251, 191, 36, 0.08) 100%);
    border: 0.9px solid rgba(251, 191, 36, 0.2);
    border-radius: 13.5px;
    color: var(--text-secondary);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.1);
    margin-bottom: 1rem;
}

.disclaimer-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
    opacity: 0.6
}

.disclaimer-copyright::after {
    content: 'ℹ️';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 50%;
    font-size: 1rem;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
    border: 2px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 0 0 3px var(--background-dark);
    animation: warningGlow 3s ease-in-out infinite;
}


.disclaimer-copyright:hover {
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
    transform: translateY(-1px);
    transition: all 0.3s ease
}

.disclaimer-copyright a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.025em;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.15)
}

.disclaimer-copyright a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--gradient-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px
}

.disclaimer-copyright a:hover {
    color: var(--primary-light);
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2)
}

.disclaimer-copyright a:hover::after {
    width: calc(100% - 0.8rem)
}

.disclaimer-copyright a:focus {
    outline: none;
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.3)
}

.disclaimer-copyright a:active {
    transform: translateY(0);
    transition-duration: 0.1s
}

.container>.disclaimer-copyright {
    margin-top: 2.5rem
}