/* Fishing Tournament Plugin - Frontend CSS - Navy Blue & Tan */

.ft-tournaments-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    border-radius: 15px;
}

.ft-archive-header { text-align: center; margin-bottom: 50px; }

.ft-archive-header h1 {
    font-size: 3.5em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #d4a574, #c4956a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.ft-archive-header p { color: rgba(255,255,255,0.85); font-size: 1.2em; }

.ft-tournaments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ft-tournament-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.ft-tournament-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.4);
}

.ft-tournament-card.ft-card-new {
    animation: ftFadeUp 0.5s ease both;
}

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

.ft-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #1a237e;
}

.ft-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.ft-tournament-card:hover .ft-card-image img { transform: scale(1.08); }

.ft-placement-banner {
    position: absolute;
    top: 18px;
    right: -36px;
    width: 150px;
    height: 38px;
    background: linear-gradient(135deg, #d4a574, #c4956a);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 3;
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ft-card-content { padding: 22px; }

.ft-card-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #1a237e;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.ft-card-title a { color: inherit; text-decoration: none; transition: color 0.25s; }
.ft-card-title a:hover { color: #c4956a; }

.ft-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.ft-card-meta span {
    background: #f4f4f4;
    color: #555;
    font-size: 0.8em;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
}

.ft-view-details {
    display: inline-block;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.78em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(26,35,126,0.3);
}

.ft-view-details:hover {
    background: linear-gradient(135deg, #c4956a, #d4a574);
    transform: translateY(-2px);
}

.ft-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px 20px;
    color: rgba(255,255,255,0.9);
    font-size: 1em;
}

.ft-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #d4a574;
    border-radius: 50%;
    animation: ftSpin 0.9s linear infinite;
    flex-shrink: 0;
}

@keyframes ftSpin { to { transform: rotate(360deg); } }

.ft-end { text-align: center; padding: 30px 20px; }

.ft-end p {
    display: inline-block;
    background: rgba(212,165,116,0.2);
    color: #d4a574;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 25px;
    margin: 0;
}

/* Single Tournament */
.ft-single-tournament {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.ft-container {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    border-radius: 15px;
    padding: 40px;
}

.ft-back-wrapper { margin-bottom: 30px; }

.ft-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 22px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    transition: all 0.3s;
}

.ft-back-link:hover { background: #fff; color: #1a237e; }

.ft-tournament-header { text-align: center; margin-bottom: 40px; }

.ft-tournament-title {
    font-size: 2.5em;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.ft-placement-badge {
    display: inline-block;
    background: linear-gradient(135deg, #c4956a, #d4a574);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ft-tournament-details {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.ft-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ft-meta-item {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #c4956a;
}

.ft-meta-label {
    display: block;
    font-weight: 700;
    color: #1a237e;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ft-meta-value {
    color: #555;
    font-size: 1.1em;
    font-weight: 500;
}

.ft-description {
    margin-bottom: 30px;
}

.ft-description h2,
.ft-notes h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a237e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 3px solid #c4956a;
    padding-bottom: 10px;
}

.ft-description-content {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
}

.ft-notes {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.ft-notes p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Gallery */
.ft-gallery-section {
    background: #fff;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.ft-gallery-section h2 {
    font-size: 2em;
    font-weight: 700;
    color: #1a237e;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-bottom: 3px solid #c4956a;
    padding-bottom: 10px;
}

.ft-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ft-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    cursor: pointer;
    display: block;
    transition: transform 0.35s, box-shadow 0.35s;
}

.ft-gallery-item:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.ft-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ft-gallery-item:hover img { transform: scale(1.07); }

.ft-gallery-cap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(26,35,126,0.88));
    color: #fff;
    padding: 30px 16px 14px;
    font-size: 0.85em;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.ft-gallery-item:hover .ft-gallery-cap { transform: translateY(0); }

/* Lightbox */
.ft-lightbox { display: none; position: fixed; inset: 0; z-index: 999999; background: rgba(26,35,126,0.96); align-items: center; justify-content: center; }
.ft-lightbox.active { display: flex; }
.ft-lb-content { display: flex; flex-direction: column; align-items: center; max-width: 90vw; max-height: 90vh; }

.ft-lb-img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: ftLbIn 0.4s ease;
}

@keyframes ftLbIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }

.ft-lb-caption { color: #fff; margin-top: 18px; font-size: 1.05em; text-align: center; max-width: 700px; }
.ft-lb-close { position: fixed; top: 25px; right: 35px; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 40px; line-height: 1; padding: 8px 14px; border-radius: 50%; cursor: pointer; transition: background 0.3s, transform 0.3s; z-index: 10; }
.ft-lb-close:hover { background: #c4956a; transform: rotate(90deg); }
.ft-lb-prev, .ft-lb-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 48px; padding: 20px 16px; border-radius: 10px; cursor: pointer; transition: background 0.3s; z-index: 10; }
.ft-lb-prev { left: 30px; }
.ft-lb-next { right: 30px; }
.ft-lb-prev:hover, .ft-lb-next:hover { background: #1a237e; }
.ft-lb-counter { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #1a237e; color: #fff; padding: 8px 20px; border-radius: 20px; font-size: 0.9em; font-weight: 600; z-index: 10; }
.ft-lb-controls { position: fixed; bottom: 28px; right: 35px; display: flex; gap: 10px; z-index: 10; }
.ft-lb-play, .ft-lb-pause { background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 1.2em; padding: 10px 14px; border-radius: 50%; cursor: pointer; transition: background 0.3s; }
.ft-lb-play:hover, .ft-lb-pause:hover { background: #c4956a; }

/* Responsive */
@media (max-width: 1100px) { .ft-tournaments-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
    .ft-tournaments-grid { grid-template-columns: 1fr; }
    .ft-tournaments-wrapper { padding: 30px 15px; }
    .ft-single-tournament { padding: 30px 15px; }
    .ft-container { padding: 20px; }
    .ft-archive-header h1 { font-size: 2.2em; }
    .ft-lb-prev { left: 10px; }
    .ft-lb-next { right: 10px; }
}

/* Placement in Meta Area */
.ft-card-placement {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #c4956a;
    font-weight: 600;
    font-size: 0.9em;
}

.ft-card-placement i {
    font-size: 1.1em;
}

/* Related Tournaments Section */
.ft-related-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid #e8e8e8;
}

.ft-related-section h2 {
    font-size: 1.9em;
    color: #1a237e;
    margin-bottom: 30px;
    font-weight: 700;
}

.ft-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.ft-related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,35,126,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ft-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(26,35,126,0.18);
}

.ft-related-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.ft-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.ft-related-card:hover .ft-related-image img {
    transform: scale(1.08);
}

.ft-related-content {
    padding: 20px;
}

.ft-related-content h4 {
    margin: 0 0 12px 0;
    font-size: 1.15em;
    line-height: 1.4;
}

.ft-related-content h4 a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s;
}

.ft-related-content h4 a:hover {
    color: #c4956a;
}

.ft-related-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #666;
    font-size: 0.88em;
}

.ft-related-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive for Related Tournaments */
@media (max-width: 1100px) {
    .ft-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .ft-related-grid {
        grid-template-columns: 1fr;
    }
    .ft-related-section h2 {
        font-size: 1.6em;
    }
}
