/* CoinFlipEdge Custom Styles - Built on Bootswatch Slate */

/* Animation for landing page */
.slide-text {
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Total Rewards Card */
.total-rewards-card {
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.total-rewards-card h2 {
    font-size: 3rem;
    font-weight: 700;
}

/* Newsboard */
.newsboard {
    border-radius: 16px;
    padding: 1.5rem;
}

.newsboard-header {
    font-weight: 600;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Badges */
.badge-pending {
    background-color: #f89406;
    color: #000;
}

.badge-completed {
    background-color: #62c462;
    color: #fff;
}

.badge-posted {
    background-color: #5bc0de;
    color: #fff;
}

/* Month Selector */
.month-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Copy Button */
.copy-btn {
    cursor: pointer;
    transition: opacity 0.3s;
}

.copy-btn:hover {
    opacity: 0.7;
}

/* Admin Card Hover */
.admin-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.admin-card:hover {
    transform: translateY(-5px);
}

/* Leaderboard Placement Colors */
.leaderboard-place-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000 !important;
}

.leaderboard-place-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #A0A0A0 100%) !important;
    color: #000 !important;
}

.leaderboard-place-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #B8860B 100%) !important;
    color: #000 !important;
}

/* News Card Hover */
.news-card {
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    height: 200px;
    object-fit: cover;
}

/* Fix newsboard z-index to not overlap navbar dropdowns */
.newsboard.sticky-top {
    z-index: 100;
}

/* Ensure navbar dropdowns appear above newsboard */
.navbar .dropdown-menu {
    z-index: 1050;
}

/* Address Display */
.address-display {
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    word-break: break-all;
}

/* Glow Button - uses cyan/info color scheme */
.glow-button {
    --glow-color: #5bc0de;
    display: inline-block;
    font-size: 15px;
    padding: 0.7em 2.7em;
    letter-spacing: 0.06em;
    position: relative;
    font-family: inherit;
    border-radius: 0.6em;
    overflow: hidden;
    transition: all 0.3s;
    line-height: 1.4em;
    border: 2px solid var(--glow-color);
    background: linear-gradient(to right, rgba(91, 192, 222, 0.1) 1%, transparent 40%, transparent 60%, rgba(91, 192, 222, 0.1) 100%);
    color: var(--glow-color);
    box-shadow: inset 0 0 10px rgba(91, 192, 222, 0.4), 0 0 9px 3px rgba(91, 192, 222, 0.1);
    text-align: center;
    text-decoration: none;
    margin: 0.5rem 0;
}

.glow-button:hover {
    color: #9dd9eb;
    box-shadow: inset 0 0 10px rgba(91, 192, 222, 0.6), 0 0 9px 3px rgba(91, 192, 222, 0.2);
    text-decoration: none;
}

.glow-button::before {
    content: "";
    position: absolute;
    left: -4em;
    width: 4em;
    height: 100%;
    top: 0;
    transition: transform 0.4s ease-in-out;
    background: linear-gradient(to right, transparent 1%, rgba(91, 192, 222, 0.1) 40%, rgba(91, 192, 222, 0.1) 60%, transparent 100%);
}

.glow-button:hover::before {
    transform: translateX(15em);
}

/* Inline version - smaller, for use within text */
.glow-button.inline {
    display: inline;
    font-size: 14px;
    padding: 0.35em 1.2em;
    vertical-align: middle;
    margin: 0 0.4em;
}

/* X icon only - tiny inline button */
.glow-button.x-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4em;
    width: 36px;
    height: 36px;
    vertical-align: middle;
}

.glow-button.x-icon svg {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Highlight Card for featured sections */
.highlight-card {
    background: var(--bs-gray-800);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid var(--bs-gray-700);
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(91, 192, 222, 0.2);
}

.highlight-card h2, .highlight-card h3 {
    margin-top: 0;
    color: var(--bs-info);
}

/* Article Content Styling */
.article-content h1,
.card-body h1 {
    color: var(--bs-info);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.article-content h2,
.card-body h2 {
    color: var(--bs-info);
    border-bottom: 2px solid rgba(91, 192, 222, 0.3);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-content h3,
.card-body h3 {
    color: var(--bs-info);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-content h4,
.card-body h4 {
    color: var(--bs-cyan);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Strong text in articles */
.article-content strong,
.card-body strong {
    color: var(--bs-info);
}

/* Star ratings */
.article-content .rating,
.card-body .rating {
    color: #ffd700;
    font-size: 1.2rem;
}

/* Quick Review Rating Card */
.quick-review-card {
    background: var(--bs-gray-900);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--bs-gray-700);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.quick-review-card .site-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.quick-review-card .overall-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quick-review-card .overall-rating .stars {
    color: #ffd700;
    font-size: 1.4rem;
}

.quick-review-card .overall-rating .rating-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.rating-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.rating-item:hover {
    background: rgba(91, 192, 222, 0.1);
    transform: translateY(-2px);
}

.rating-item .rating-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-item .rating-stars {
    color: #ffd700;
    font-size: 1rem;
}

.rating-item .rating-stars .empty {
    color: var(--bs-gray-700);
}

.quick-review-card .bonus-text {
    background: rgba(91, 192, 222, 0.1);
    border: 1px solid rgba(91, 192, 222, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.quick-review-card .bonus-text span {
    color: var(--bs-info);
    font-weight: 600;
    font-size: 1.1rem;
}

.quick-review-card .cta-btn {
    background: var(--bs-info);
    border: none;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(91, 192, 222, 0.4);
}

.quick-review-card .cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(91, 192, 222, 0.5);
    color: #fff;
}

.quick-review-card .card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-review-card .header-content {
    flex: 1;
    min-width: 0;
}

.quick-review-card .card-banner {
    flex-shrink: 0;
    width: 320px;
    max-width: 40%;
}

.quick-review-card .card-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--bs-gray-700);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Rake Tables - Bootstrap table-dark styling with info headers */
.rake-table {
    width: 100%;
    margin-bottom: 1.5rem;
    color: #fff;
    border-collapse: collapse;
    background-color: var(--bs-gray-800);
    border-radius: 8px;
    overflow: hidden;
}

.rake-table caption {
    caption-side: top;
    color: var(--bs-info);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.75rem;
    text-align: left;
    background: var(--bs-gray-900);
    border-bottom: 1px solid var(--bs-gray-700);
}

.rake-table thead {
    background-color: rgba(91, 192, 222, 0.15);
}

.rake-table thead th {
    color: var(--bs-info);
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--bs-info);
    white-space: nowrap;
}

.rake-table tbody tr {
    border-bottom: 1px solid var(--bs-gray-700);
    transition: background-color 0.2s;
}

.rake-table tbody tr:hover {
    background-color: rgba(91, 192, 222, 0.1);
}

.rake-table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.2);
}

.rake-table tbody tr:nth-of-type(odd):hover {
    background-color: rgba(91, 192, 222, 0.15);
}

.rake-table td {
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
}

.rake-table td:first-child {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Rake table min-width ensures scroll trigger on mobile */
.rake-table {
    min-width: 520px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .total-rewards-card h2 {
        font-size: 2rem;
    }
    
    .month-selector {
        justify-content: center;
    }
    
    .newsboard {
        margin-top: 2rem;
    }
    
    .glow-button {
        font-size: 13px;
        padding: 0.6em 1.5em;
        display: block;
        width: 100%;
        margin: 0.75rem 0;
    }
    
    .glow-button.inline {
        display: inline;
        font-size: 12px;
        padding: 0.3em 0.8em;
        width: auto;
    }
    
    .glow-button.x-icon {
        display: inline-flex;
        width: 32px;
        height: 32px;
        padding: 0.3em;
    }
    
    .glow-button.x-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .highlight-card {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .rating-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-review-card {
        padding: 1.5rem;
    }
    
    .quick-review-card .site-title {
        font-size: 1.6rem;
    }
    
    .rating-item {
        padding: 0.75rem;
    }
    
    .rating-item .rating-label {
        font-size: 0.75rem;
    }
    
    .rating-item .rating-stars {
        font-size: 0.85rem;
    }
    
    .article-content h2,
    .card-body h2 {
        font-size: 1.4rem;
    }
    
    .article-content h3,
    .card-body h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 640px) {
    .quick-review-card .card-header-row {
        flex-direction: column;
    }
    
    .quick-review-card .card-banner {
        width: 100%;
        max-width: 100%;
        order: -1;
        margin-bottom: 1rem;
    }
    
    .quick-review-card .card-banner img {
        max-width: 220px;
        margin: 0 auto;
        display: block;
    }
}
