/* Shared Modal Styles for Referral Gates */
/* This file contains all modal CSS that can be shared across pages */

/* Referral Modal Styles */
.referral-gate {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.referral-content {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border: 2px solid #ff6b35;
    border-radius: 15px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.5s ease-out;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.referral-content h2 {
    color: #ff6b35;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.referral-message {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.referral-info {
    margin-bottom: 1.5rem;
}

.referral-info p {
    color: #cccccc;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.referral-link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.referral-link-input {
    flex: 1;
    padding: 0.8rem;
    background: #1a1a1a;
    border: 2px solid #ff6b35;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.referral-link-input:focus {
    border-color: #ff8c42;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.copy-button, .close-button, .tweet-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(145deg, #ff6b35, #ff8c42);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-button:hover, .tweet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.tweet-button {
    background: linear-gradient(145deg, #1da1f2, #0d8bd9);
}

.tweet-button:hover {
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.4);
}

.close-button {
    background: linear-gradient(145deg, #666666, #888888);
}
.top-right-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.close-button:hover {
    box-shadow: 0 10px 25px rgba(102, 102, 102, 0.4);
}

/* Social Share Section Styles */
.social-share-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 107, 53, 0.3);
}

.social-share-section h3 {
    color: #ff6b35;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.social-button {
    padding: 0.6rem 0.8rem;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.grey-social {
    background: linear-gradient(145deg, #6b7280, #9ca3af); /* Tailwind gray-500 to gray-400 */
}

.grey-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.4);
}


.facebook-button {
    background: linear-gradient(145deg, #1877f2, #0d5bb8);
}

.facebook-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.reddit-button {
    background: linear-gradient(145deg, #ff4500, #cc3700);
}

.reddit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.4);
}

.whatsapp-button {
    background: linear-gradient(145deg, #25d366, #1ea952);
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.telegram-button {
    background: linear-gradient(145deg, #0088cc, #006699);
}
.discord-button {
    background: linear-gradient(145deg, #5865F2, #404EED);
}

.discord-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}


.telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.pinterest-button {
    background: linear-gradient(145deg, #e60023, #b8001c);
}

.pinterest-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 0, 35, 0.4);
}

/* Twitter Progress Modal Styles */
.progress-section {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.progress-info p {
    color: #ff6b35;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ff6b35;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.status-message {
    margin-top: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    display: none;
    animation: pulse 1.5s ease-in-out infinite;
}

.status-verifying {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    color: #ffc107;
}

.status-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid #28a745;
    color: #28a745;
}

.status-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.instructions {
    margin-top: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.instructions p {
    color: #cccccc;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    line-height: 1.3;
}

.instructions p:first-child {
    color: #ff6b35;
    font-weight: bold;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Modal mobile optimizations */
    .referral-content {
        padding: 1.5rem;
        max-width: 95%;
        width: 95%;
    }
    
    .referral-content h2 {
        font-size: 1.3rem;
    }
    
    .referral-message {
        font-size: 0.9rem;
    }
    
    .referral-link-container {
        gap: 0.5rem;
    }
    
    .referral-link-input {
        font-size: 0.8rem;
        padding: 0.7rem;
    }
    
    .copy-button, .close-button, .tweet-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .social-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.6rem;
    }
    
    .social-button {
        padding: 0.5rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .progress-section {
        padding: 1rem;
    }
    
    .progress-info p {
        font-size: 0.9rem;
    }
    
    .progress-bar {
        height: 14px;
    }
    
    .instructions {
        padding: 1rem;
    }
    
    .instructions p {
        font-size: 0.75rem;
    }
    
    .instructions p:first-child {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Extra mobile modal optimizations */
    .referral-content {
        padding: 1.2rem;
        max-width: 98%;
        width: 98%;
    }
    
    .referral-content h2 {
        font-size: 1.2rem;
    }
    
    .referral-message {
        font-size: 0.85rem;
    }
    
    .referral-link-input {
        font-size: 0.75rem;
        padding: 0.6rem;
    }
    
    .copy-button, .close-button, .tweet-button {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
    
    .social-buttons {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.5rem;
    }
    
    .social-button {
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .progress-section {
        padding: 0.8rem;
    }
    
    .progress-info p {
        font-size: 0.85rem;
    }
    
    .progress-bar {
        height: 12px;
    }
    
    .instructions {
        padding: 0.8rem;
    }
    
    .instructions p {
        font-size: 0.7rem;
    }
    
    .instructions p:first-child {
        font-size: 0.75rem;
    }
}

/* Error Modal Styles */
.error-modal {
    z-index: 2000; /* Higher z-index than regular modals */
}

.error-content {
    border-color: #dc3545; /* Red border for error */
    max-width: 400px;
}

.error-content h2 {
    color: #dc3545; /* Red color for error title */
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.error-message {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    padding: 1rem;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.error-content .action-buttons {
    margin-top: 1rem;
}

.error-content .tweet-button {
    background: linear-gradient(145deg, #dc3545, #c82333);
}

.error-content .tweet-button:hover {
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.4);
}

/* Mobile responsive styles for error modal */
@media (max-width: 768px) {
    .error-content {
        padding: 1.5rem;
        max-width: 95%;
        width: 95%;
    }
    
    .error-content h2 {
        font-size: 1.3rem;
    }
    
    .error-message {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .error-content .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .error-content .close-button, 
    .error-content .tweet-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .error-content {
        padding: 1.2rem;
        max-width: 98%;
        width: 98%;
    }
    
    .error-content h2 {
        font-size: 1.2rem;
    }
    
    .error-message {
        font-size: 0.85rem;
        padding: 0.6rem;
    }
    
    .error-content .close-button, 
    .error-content .tweet-button {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}

/* Credentials Modal Styles */
.credentials-modal {
    z-index: 1500; /* Between regular and error modals */
}

.credentials-content {
    max-width: 600px; /* Wider for the two-column layout */
    width: 95%;
}

.access-options {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: stretch;
}

.access-option {
    flex: 1;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid;
    text-align: center;
    transition: all 0.3s ease;
}

.premium-option {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.premium-option:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.free-option {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.free-option:hover {
    background: rgba(40, 167, 69, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.access-option h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.premium-option h3 {
    color: #ff6b35;
}

.free-option h3 {
    color: #28a745;
}

.option-description {
    color: #cccccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.pricing {
    margin: 1rem 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.price-item:last-child {
    border-bottom: none;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff6b35;
}

.duration {
    font-size: 0.9rem;
    color: #cccccc;
}

.access-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-weight: bold;
    font-size: 0.9rem;
    position: relative;
}

.access-divider::before,
.access-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1px;
    height: 40px;
    background: #666666;
}

.access-divider::before {
    left: -0.75rem;
}

.access-divider::after {
    right: -0.75rem;
}

.premium-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(145deg, #ff6b35, #ff8c42);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

.free-button {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(145deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100%;
}

.free-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}

/* Mobile responsive styles for credentials modal */
@media (max-width: 768px) {
    .credentials-content {
        max-width: 95%;
        width: 95%;
    }
    
    .access-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .access-option {
        padding: 1.2rem;
    }
    
    .access-option h3 {
        font-size: 1.1rem;
    }
    
    .option-description {
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .duration {
        font-size: 0.8rem;
    }
    
    .premium-button, .free-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .access-divider {
        font-size: 0.8rem;
    }
    
    .access-divider::before,
    .access-divider::after {
        height: 20px;
    }
}

@media (max-width: 480px) {
    .credentials-content {
        padding: 1.2rem;
        max-width: 98%;
        width: 98%;
    }
    
    .access-option {
        padding: 1rem;
    }
    
    .access-option h3 {
        font-size: 1rem;
    }
    
    .option-description {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 0.9rem;
    }
    
    .duration {
        font-size: 0.75rem;
    }
    
    .premium-button, .free-button {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}

#twitterPrecheckNo{
    background: linear-gradient(145deg, #666666, #888888);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    width: auto;
}

#twitterPrecheckNo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 102, 102, 0.4);
}

#twitterPrecheckYes{
    background: linear-gradient(145deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    width: auto;
}

#twitterPrecheckYes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.4);
}
