/* ===============================================
   VGFOTO.CSS - VN-BIKER.DE
   Fotowettbewerb & Top Bikes Wahlen
   Wolf im Schafspelz - Moderne Card-Experience
   Basis: WBB-ACP-CSS | Effekte: Modern & Smooth
   =============================================== */

/* ===============================================
   GLOBALE EINSTELLUNGEN
   =============================================== */
.vgfoto-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===============================================
   NAVIGATION - Sidebar mit Smooth Hover
   =============================================== */
.vgfoto-nav {
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.vgfoto-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(102, 102, 134, 0.05);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vgfoto-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #666686;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.vgfoto-nav-link:hover::before {
    transform: scaleY(1);
}

.vgfoto-nav-link:hover {
    background: rgba(102, 102, 134, 0.12);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.vgfoto-nav-link:active {
    transform: translateX(6px) scale(0.98);
}

/* ===============================================
   FILTER & SORT BAR
   =============================================== */
.vgfoto-filterbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vgfoto-filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vgfoto-filter-label {
    font-weight: bold;
    color: #666686;
    margin-right: 10px;
}

.vgfoto-sort-btn {
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(102, 102, 134, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.vgfoto-sort-btn:hover {
    background: rgba(102, 102, 134, 0.15);
    transform: translateY(-2px);
}

.vgfoto-sort-btn.active {
    background: #666686;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(102, 102, 134, 0.3);
}

/* ===============================================
   FOTO CARDS - Mit Entrance Animation
   =============================================== */
.vgfoto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.vgfoto-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: cardFadeIn 0.6s ease forwards;
}

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

.vgfoto-card:nth-child(1) { animation-delay: 0.05s; }
.vgfoto-card:nth-child(2) { animation-delay: 0.1s; }
.vgfoto-card:nth-child(3) { animation-delay: 0.15s; }
.vgfoto-card:nth-child(4) { animation-delay: 0.2s; }
.vgfoto-card:nth-child(5) { animation-delay: 0.25s; }
.vgfoto-card:nth-child(6) { animation-delay: 0.3s; }

.vgfoto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #666686, #9999aa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.vgfoto-card:hover::before {
    transform: scaleX(1);
}

.vgfoto-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px) scale(1.02);
}

/* ===============================================
   FOTO BILD - Premium Zoom Effect
   =============================================== */
.vgfoto-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.vgfoto-image-container::after {
    content: '\f06e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 48px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.vgfoto-image-container:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.vgfoto-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.vgfoto-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.vgfoto-image-container:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.vgfoto-image-container:hover .vgfoto-image {
    transform: scale(1.15) rotate(1deg);
}

/* Badge für Platzierungen - Mit Animation */
.vgfoto-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 3;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.vgfoto-badge.platz1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

.vgfoto-badge.platz2 {
    background: linear-gradient(135deg, #E0E0E0 0%, #B0B0B0 100%);
    color: #000000;
    box-shadow: 0 4px 20px rgba(192, 192, 192, 0.5);
}

.vgfoto-badge.platz3 {
    background: linear-gradient(135deg, #D4A574 0%, #B87333 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(205, 127, 50, 0.5);
}

/* ===============================================
   FOTO INFO - Titel, User, Datum
   =============================================== */
.vgfoto-title {
    font-size: 15px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 10px;
    text-align: center;
    line-height: 20px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vgfoto-user {
    text-align: center;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(102, 102, 134, 0.05);
    border-radius: 8px;
}

.vgfoto-user a {
    font-weight: bold;
    transition: all 0.2s ease;
}

.vgfoto-user a:hover {
    color: #444466;
}

.vgfoto-date {
    text-align: center;
    color: #999999;
    font-size: 10px;
    margin-bottom: 15px;
}

/* ===============================================
   VOTING - Interactive Rating
   =============================================== */
.vgfoto-voting {
    text-align: center;
    padding: 18px 15px 15px 15px;
    border-top: 2px solid #F0F0F0;
    margin-top: 15px;
    background: linear-gradient(to bottom, transparent 0%, rgba(102, 102, 134, 0.02) 100%);
}

.vgfoto-rating-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #CCCCCC;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    background: #FAFAFA;
    color: #333333;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.vgfoto-rating-select:hover {
    border-color: #666686;
    background: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.vgfoto-rating-select:focus {
    outline: none;
    border-color: #666686;
    box-shadow: 0 0 0 3px rgba(102, 102, 134, 0.15);
}

.vgfoto-vote-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.vgfoto-vote-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.vgfoto-vote-button:active::before {
    width: 300px;
    height: 300px;
}

.vgfoto-vote-button.voted {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #FFFFFF;
    cursor: default;
}

.vgfoto-vote-button.voted::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
}

/* ===============================================
   KOMMENTAR & BESCHREIBUNG
   =============================================== */
.vgfoto-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #F0F0F0;
    margin-top: 12px;
}

.vgfoto-action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 11px;
    background: rgba(102, 102, 134, 0.05);
    transition: all 0.25s ease;
}

.vgfoto-action-link:hover {
    background: rgba(102, 102, 134, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.vgfoto-action-link:active {
    transform: translateY(0);
}

/* ===============================================
   STATISTIKEN & PUNKTE - Enhanced
   =============================================== */
.vgfoto-stats {
    display: flex;
    justify-content: space-around;
    padding: 18px;
    background: linear-gradient(135deg, rgba(102, 102, 134, 0.05) 0%, rgba(102, 102, 134, 0.02) 100%);
    border-radius: 12px;
    margin-top: 15px;
    gap: 15px;
}

.vgfoto-stat-item {
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease;
}

.vgfoto-stat-item:hover {
    transform: translateY(-3px);
}

.vgfoto-stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #666686;
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}

.vgfoto-stat-label {
    font-size: 10px;
    color: #999999;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===============================================
   UPLOAD FORMULAR - Modern & User-Friendly
   =============================================== */
.vgfoto-upload-form {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 30px auto;
}

.vgfoto-form-group {
    margin-bottom: 25px;
    animation: slideInUp 0.5s ease forwards;
    opacity: 0;
}

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

.vgfoto-form-group:nth-child(1) { animation-delay: 0.1s; }
.vgfoto-form-group:nth-child(2) { animation-delay: 0.2s; }
.vgfoto-form-group:nth-child(3) { animation-delay: 0.3s; }
.vgfoto-form-group:nth-child(4) { animation-delay: 0.4s; }

.vgfoto-form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333333;
    font-size: 12px;
}

.vgfoto-form-textarea {
    resize: vertical;
    min-height: 140px;
    width: 100%;
    box-sizing: border-box;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
}

.vgfoto-submit-button {
    width: 100%;
    padding: 18px 36px;
    font-size: 14px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #666686 0%, #555575 100%);
    color: #FFFFFF;
    border: none;
}

.vgfoto-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 134, 0.3);
}

/* ===============================================
   GROSSE BILDANSICHT - Lightbox Style
   =============================================== */
.vgfoto-detail-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    margin: 30px auto;
    display: block;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.vgfoto-detail-info {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ===============================================
   KOMMENTARE - Chat-Style
   =============================================== */
.vgfoto-comments {
    margin-top: 30px;
}

.vgfoto-comment {
    background: #FAFAFA;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    border-left: 4px solid #666686;
    transition: all 0.3s ease;
    animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.vgfoto-comment:hover {
    background: #F5F5F5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

.vgfoto-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E0E0E0;
}

.vgfoto-comment-user {
    font-weight: bold;
    color: #666686;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vgfoto-comment-date {
    font-size: 10px;
    color: #999999;
}

.vgfoto-comment-text {
    line-height: 20px;
    color: #333333;
}

.vgfoto-comment-delete {
    margin-top: 12px;
    padding: 6px 12px;
    font-size: 10px;
    background: #DC3545;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vgfoto-comment-delete:hover {
    background: #C82333;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 53, 69, 0.3);
}

/* ===============================================
   WELCOME / INFO BOXEN - Eye-Catching
   =============================================== */
.vgfoto-welcome {
    background: linear-gradient(135deg, #FAFBFC 0%, #F0F2F5 100%);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border-left: 5px solid #666686;
    animation: fadeInDown 0.6s ease;
}

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

.vgfoto-welcome-title {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.vgfoto-welcome-text {
    line-height: 22px;
    color: #555555;
}

/* ===============================================
   ONLINE USER - Live Status
   =============================================== */
.vgfoto-online {
    background: #FFFFFF;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vgfoto-online-title {
    font-weight: bold;
    color: #666686;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vgfoto-online-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse-green 2s infinite;
}

.vgfoto-online-list {
    font-size: 11px;
    line-height: 20px;
}

/* ===============================================
   LOADING STATE
   =============================================== */
.vgfoto-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.vgfoto-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #F0F0F0;
    border-top: 4px solid #666686;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===============================================
   SUCCESS MESSAGE
   =============================================== */
.vgfoto-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 18px 24px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid #28a745;
    animation: slideInRight 0.5s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.vgfoto-success::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 24px;
}

/* ===============================================
   RESPONSIVE DESIGN - Mobile First
   =============================================== */
@media screen and (max-width: 768px) {
    .vgfoto-container {
        padding: 15px;
    }
    
    .vgfoto-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .vgfoto-card {
        padding: 15px;
    }
    
    .vgfoto-upload-form {
        padding: 25px 20px;
    }
    
    .vgfoto-filterbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .vgfoto-filter-group {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .vgfoto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vgfoto-card {
        padding: 12px;
    }
    
    .vgfoto-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .vgfoto-actions {
        flex-direction: column;
    }
    
    .vgfoto-action-link {
        width: 100%;
        justify-content: center;
    }
    
    .vgfoto-upload-form {
        padding: 20px 15px;
    }
}

/* ===============================================
   PRINT OPTIMIERUNG
   =============================================== */
@media print {
    .vgfoto-nav,
    .vgfoto-filterbar,
    .vgfoto-voting,
    .vgfoto-actions,
    .vgfoto-vote-button,
    .vgfoto-comment-delete {
        display: none;
    }
    
    .vgfoto-card {
        box-shadow: none;
        border: 1px solid #CCCCCC;
        page-break-inside: avoid;
    }
    
    .vgfoto-card::before {
        display: none;
    }
}

/* ===============================================
   ACCESSIBILITY
   =============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .vgfoto-card {
        border: 2px solid #000000;
    }
    
    .vgfoto-badge {
        border: 2px solid #000000;
    }
}
