/* Frontend Styles - Random Info Display */

.rid-frontend-container {
    font-family: 'Poppins', sans-serif;
    padding: 60px 20px;
    width: 100%;
    max-width: none;
    margin: 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
}

.rid-frontend-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.rid-info-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.rid-info-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 30px;
    padding: 50px 40px 70px 40px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    min-height: 300px;
}

.rid-info-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

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

.rid-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border-color: rgba(102, 126, 234, 0.4);
}

/* New Header Layout: Logo Left | Divider | Title */
.rid-info-header-new {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.rid-info-logo-left {
    flex-shrink: 0;
}

.rid-info-logo-left img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.rid-info-logo-left img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.4));
}

.rid-info-divider {
    width: 4px;
    height: 150px;
    background: linear-gradient(180deg, 
        rgba(102, 126, 234, 0.2) 0%, 
        rgba(102, 126, 234, 0.8) 50%, 
        rgba(102, 126, 234, 0.2) 100%
    );
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.rid-info-title-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
}

.rid-info-main-title {
    color: #fff;
    font-size: 2.8em;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

/* Old logo style - keep for backward compatibility */
.rid-info-logo {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.rid-info-logo img {
    max-width: 200px;
    max-height: 120px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.rid-info-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.4));
}

.rid-info-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.rid-info-icon {
    font-size: 3em;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px 10px rgba(102, 126, 234, 0);
    }
}

.rid-info-title {
    flex: 1;
    color: #fff;
    font-size: 2em;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rid-info-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1em;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

.rid-info-content p {
    margin: 0 0 15px 0;
}

.rid-info-content p:last-child {
    margin-bottom: 0;
}

.rid-info-content strong {
    color: #fff;
    font-weight: 600;
}

.rid-info-watermark {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
    font-weight: 500;
    z-index: 1;
    letter-spacing: 1px;
    text-align: center;
}

/* Action Buttons */
.rid-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.rid-action-btn {
    flex: 1;
    min-width: 200px;
    font-family: 'Poppins', sans-serif;
    padding: 18px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.rid-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.rid-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.rid-refresh-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.rid-refresh-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.rid-download-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

.rid-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 87, 108, 0.5);
}

.rid-btn-icon {
    font-size: 1.3em;
    position: relative;
    z-index: 1;
}

.rid-btn-text {
    position: relative;
    z-index: 1;
}

.rid-action-btn:active {
    transform: translateY(-1px);
}

/* Loading State */
.rid-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(26, 26, 46, 0.95);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.rid-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.rid-loading p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
}

.rid-info-wrapper.loading .rid-info-box {
    filter: blur(5px);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .rid-frontend-container {
        padding: 20px 15px;
    }
    
    .rid-info-box {
        padding: 30px 25px 60px 25px;
        border-radius: 20px;
        min-height: 250px;
    }
    
    .rid-info-header-new {
        flex-direction: row;
        gap: 15px;
    }
    
    .rid-info-logo-left img {
        width: 110px;
        height: 110px;
    }
    
    .rid-info-divider {
        height: 110px;
        width: 3px;
    }
    
    .rid-info-main-title {
        font-size: 2em;
    }
    
    .rid-info-logo img {
        max-width: 150px;
        max-height: 90px;
    }
    
    .rid-info-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .rid-info-watermark {
        font-size: 0.8em;
        bottom: 15px;
    }
    
    .rid-info-icon {
        font-size: 2.5em;
        width: 70px;
        height: 70px;
    }
    
    .rid-info-title {
        font-size: 1.5em;
    }
    
    .rid-info-content {
        font-size: 1em;
        padding: 15px;
    }
    
    .rid-info-watermark {
        bottom: 15px;
        right: 20px;
        font-size: 0.75em;
    }
    
    .rid-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .rid-action-btn {
        width: 100%;
        min-width: auto;
        padding: 16px 25px;
    }
    
    .rid-loading {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .rid-frontend-container {
        padding: 30px 15px;
    }
    
    .rid-info-box {
        padding: 25px 20px 55px 20px;
    }
    
    .rid-info-header-new {
        gap: 10px;
    }
    
    .rid-info-logo-left {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .rid-info-logo-left img {
        width: 60px;
        height: 60px;
        object-fit: contain;
    }
    
    .rid-info-divider {
        height: 60px;
        width: 2px;
    }
    
    .rid-info-main-title {
        font-size: 1.2em;
    }
    
    .rid-info-title {
        font-size: 1.3em;
    }
    
    .rid-info-content {
        font-size: 0.9em;
        line-height: 1.6;
    }
    
    .rid-action-btn {
        font-size: 0.9em;
        padding: 12px 18px;
    }
    
    .rid-info-watermark {
        font-size: 0.7em;
        bottom: 12px;
    }
}

/* Animation for content change */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rid-info-box.updating {
    animation: fadeIn 0.5s ease;
}

/* Print styles for downloaded image */
@media print {
    .rid-actions {
        display: none !important;
    }
    
    .rid-info-box {
        box-shadow: none;
        page-break-inside: avoid;
    }
}
